lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Lets call it vapairs!

Just tried to code it. Doesnt work to get the vargs into the iterator
without packing it into a table. 'cause vargs is not first-class. Even
tried some tricks with coroutines, to have one coroutine as argument
deliverer for the main call, doesnt work either (with full
continuations it would work tough :) but might argue that even if
possible the impact of a continuation far outweights the gain of a
saved table pack. It seems vargs is just one of the few things, you
cannot iterate over :(