lua-users home
lua-l archive

Re: EBNF Syntax of Lua

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


On Jan 15, 2008, at 5:45 PM, Nicolai Mainiero wrote:
Looking at these four rules above the Language allowes functioncalls like:
("Hello")"hello"
or
(nil):Test("hello")
Which are obviously senseless and when I try to execute them the interpreter gives me the following error message:
While peculiar, it's valid:
debug.setmetatable( nil, { __index = { Text = function( self, aValue ) return aValue end } } )
print( ( nil ):Text( 'hello' ) )

AltStyle によって変換されたページ (->オリジナル) /