lua-users home
lua-l archive

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

On Mon, Jul 4, 2011 at 4:19 PM, David Manura <> 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]).