lua-users home
lua-l archive

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


On Tue, Nov 01, 2011 at 09:20:24AM +0000, Gavin Wraith wrote:
> In message <20111101013730.GA15339@magritte.tecgraf.puc-rio.br> you wrote:
> 
> > > there's no technical reason why lua couldn't permit ?, !, ???, and so forth.
> > 
> > And it's pretty easy to do in Lua 5.2: just copy and edit lctype.c and
> > add it to your project.
> 
> RiscLua uses ?,!,$ in a way that is intended to keep BBC BASIC users
> happy. They are empty tables with metamethods, so that ?[adr],![adr],$[adr]
> correspond in usage to BBC BASIC's ?adr,!adr,$adr.

Ah, but what about BBC BASIC's (incidentally, inspired by BCPL)
base!offset syntax? (Especially useful for structure manipulation.)  I
think this would actually require their use as operators.

B.