[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Reserved keywords
- From: Albert-Jan Brouwer <acj.brouwer@...>
- Date: Tue, 25 Nov 2003 17:47:39 +0100
foo = {}
foo.do = 1
Returns:
<name> expected near `do'
foo["do"] = 1 works fine.
A similar result occurs for methods:
foo = {}
foo["else"] = function(obj) end
foo:else()
Returns:
<name> expected near `else'
Is it really necessary that the parser complains about the use
of reserved keywords in case of foo.<keyword> or
foo:<keyword> type syntax?