lua-users home
lua-l archive

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


In message <CAG4ptLijKcfmTLAAjdc=uatzGaFdBdFosWSva1O9G_M7ke-1WQ@mail.g 
mail.com>
          Coroutines <coroutines@gmail.com> wrote:

> I'd like to discuss allowing @, $, !, and ? in identifier names.  I
> chose these explicitly because they can't be confused with an operator
> at the end of an identifier.

RiscLua has allowed these in identifier names since at least 2003.
The motivation was to have syntax for memory access that would
be familiar to users of BBC Basic. As RISC OS stands rather
isolated among operating systems, so RiscLua has more freedom to go 
its own way. Thus (in the environment of the riscos library)
"![addr] = word, ?[addr] = byte and $[addr] = string" pretty much
correspond to BBC Basic's "!addr% = word%, ?addr% = byte% and
$addr% = string$".

-- 
Gavin Wraith