lua-users home
lua-l archive

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


> Alternatively the arguments could be passed in as a single argument, i.e. 
> an array, or a userdata object pretending to be a read-only array 
> (implementing the length and index operations). The userdata object would 
> not require the allocation of a potentially massive array to store a copy 
> of the argument vector, but would copy the contents of 'argv' to the lua 
> interpreter one string at a time.

They are already passed as a single argument, the table 'arg'. Maybe
we should just remove this mechanism of passing them as separated
arguments...

-- Roberto