lua-users home
lua-l archive

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

Luiz Henrique de Figueiredo wrote:
> >Could the same be accomplished with a static character
> >buffer on the C stack and strcat()?
> Yes, it could and was done like that until recently.
> However, the static buffer implies a large stack consumption that generates
> problems in programs with many nested dofiles. Some people running Lua in
> small systems complained about this.

That would not happen any more in Lua 4.0.  parse_file (which would have this
big buffer) is left before the chunk is executed.

Ciao, ET.