lua-users home
lua-l archive

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


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.