[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc5) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 4 Jul 2011 17:41:40 -0300
> This way of removing functions might not be ideal:
>
> [...]
> > setfenv(function()end, {})
> stdin:1: deprecated function
> stack traceback:
> [C]: in function 'setfenv'
> stdin:1: in main chunk
> [C]: in ?
>
> The reason is that to test whether a function exists, it is not as simple as
>
> if io.popen then ..... end
>
> [...]
On the other hand, I guess this message may be very useful for people
changing from 5.1 to 5.2. (Not people from the list, who has been
discussing the changes for a long time, but many (most?) programmers
not aware of all changes...)
-- Roberto