[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc3) now available
- From: Renato Maia <maia@...>
- Date: Tue, 28 Jun 2011 14:06:26 -0300
On 28 Jun 2011, at 07:03, Stuart P. Bentley wrote:
It seems a bit silly to force that code to use rawget, just for the
sake of a slightly different error for a specific kind of typo.
I also found it very odd indeed. :-/
Lua 5.2.0 (beta) Copyright (C) 1994-2011 Lua.org, PUC-Rio
> =table.insret({}, 123)
stdin:1: attempt to call field 'insret' (a nil value)
stack traceback:
stdin:1: in main chunk
[C]: in ?
> io.stdout:wirte("Hello")
stdin:1: attempt to call method 'wirte' (a nil value)
stack traceback:
stdin:1: in main chunk
[C]: in ?
> =string.fomrat(_VERSION)
stdin:1: no field 'fomrat' in strings
stack traceback:
[C]: in function '__index'
stdin:1: in main chunk
[C]: in ?
> =_VERSION:fomrat()
stdin:1: no field 'fomrat' in strings
stack traceback:
[C]: in function '__index'
stdin:1: in main chunk
[C]: in ?
Why impose such odd behavior if it is something easily done in pure
Lua when necessary?
--
Renato Maia
Computer Scientist
Tecgraf/PUC-Rio
__________________________
http://www.inf.puc-rio.br/~maia/