[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc5) now available
- From: David Manura <dm.lua@...>
- Date: Mon, 4 Jul 2011 17:35:46 -0400
On Mon, Jul 4, 2011 at 4:19 PM, David Manura <dm.lua@math2.org> wrote:
> > setfenv(function()end, {})
> stdin:1: deprecated function
Correction: 5.2.0-beta-rc5 now prints "removed function" here because
setfenv is a removed (not deprecated). However, for a function that
is deprecated, we get this:
> =module"foo"
table: 0x934b440
and if we disable LUA_COMPAT_ALL, then is does this:
> =module"foo"
stdin:1: deprecated function
stack traceback:
[C]: in function 'module'
stdin:1: in main chunk
[C]: in ?
which I found a bit odd that the message about a function being
deprecated is an error rather than a warning (contrast to other
languages [1-3]).
[1] http://www.effectiveperlprogramming.com/blog/463
[2] http://download.oracle.com/javase/1.5.0/docs/guide/javadoc/deprecation/deprecation.html
[3] http://stackoverflow.com/questions/295120/c-mark-as-deprecated