[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: EBNF Syntax of Lua
- From: Petite Abeille <petite.abeille@...>
- Date: Tue, 15 Jan 2008 17:56:17 +0100
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' ) )