[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua5.1: Lua stack is too small for a script that takes over 2048 arguments
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 20 Dec 2007 10:21:41 -0200
> 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