lua-users home
lua-l archive

Re: [ANN] A catcode patch

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


On Tue, May 24, 2011 at 11:46 AM, Dirk Laurie <dpl@sun.ac.za> wrote:
> In Lua, many special characters are idle, e.g. !, ?, @ etc.
> Lua 5.2 makes it easy to bring these characters into the syntax
> as alphabetic or space characters via the table in lctype.c.
So setcatcode('$','A') would allow you to write identifiers with dollar signs?
> This is NOT a suggestion to change official Lua!
That should be a standard disclaimer and would make a useful .sig ;)
steve d.

AltStyle によって変換されたページ (->オリジナル) /