[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Table dot number?
- From: Rob Kendrick <rjek@...>
- Date: Tue, 1 Nov 2011 09:36:16 +0000
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.