[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 (work6) now available
- From: Adriano Ferreira <a.r.ferreira@...>
- Date: Thu, 19 May 2005 08:27:04 -0300
Each one of these operators or prefixes (* or #) has its load of
meanings in another programming languages. It is difficult to chose
which one makes more sense in the context of Lua.
For example,
* (C/C++)
- dereferencing pointers in expressions
- declaring pointer types in declarations
* (Ruby, Python, Perl6)
- syntactic sugar for what Lua unpack does: f(*p) = f(p[0], p[1], ...)
In Perl 6 known as the splat operator
# (Smalltalk)
- used as a prefix for Symbols (which are Smalltalk parlance for
Lisp/Scheme atoms)
Adriano.