lua-users home
lua-l archive

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


I too really like this arbritrary base syntax. 
I'm not sure if using # as the delimiter is the best character to use, is there
any problem with it since # is used as part of the shebang in files in lua(at
least on unix anyway)?


--vat

--- Joseph Stewart <joseph.stewart@gmail.com> wrote:

> On 6/10/06, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> > > Is there a published 'roadmap' of what is up-and-coming in lua - for 5.2
> > > and beyond?
> >
> > No roadmap, published or otherwise. Do you have any special requests??
> 
> A million thanks for sheparding Lua into the fantastic tool it is today.
> 
> If you're soliciting for 5.2 suggestions, would you consider
> ada/erlang style arbitrary base constants? I've brought this up before
> with no one else being interested. I'd contribute patches if there is
> interest.
> 
> To recap, erlang (and I've heard Ada) support a style of integer
> constants which precedes the constant with a number base (1-36) so
> that things like:
> 
> 2#1001 gets converted into 9 and
> 16#ff gets converted to 255
> 1#111 gets converted to 3 (okay, base one isn't that useful)
> 
> This would make some of my code much easier to read.
> 
> Just a suggestion.
> 
> -joe
> 
> > --lhf
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com