[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 13 Jun 2011 16:59:35 -0300
> o Is there a reason this idea  was scrapped?
goto is more flexible and easier to write than break with labels (which
usually demand a new block to add a label).
> o Also, since load is currently the only mechanism to set the _ENV
> upvalue without using the debug API, I'd like to see a generator for
> compiled chunks that let you set the _ENV upvalue:
> function _main (_ENV)
> return function (...)
> --[[ chunk ]]
Doesn't that seem too specific? ("A mechanism to set the _ENV upvalue of
binary chunks without using the debug API.") What is wrong with using
the debug API for this very particular case?