lua-users home
lua-l archive

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


>Erik Hougaard wrote:
>> Numbers are floats/doubles ;-)
>
>
>Only in the out of the box configuration - it's an
 
>exceedingly minor 
>
>change to move over to integers.

Perhaps Lua should provide the traditional bitwise operators (~ & | << >>,
etc) and metamethods but just leave the metamethods unimplemented in the
core language. (I think in Lua 4.0 the exponentiation operator was
available in the language but was only implemented in the Math library.)
Anyone using integer arithmetic in their project could just provide the
code for these ops.

I think this is a natural extension of Lua's philosophy - provide tools
that let users implement their own language features rather than trying to
support all use cases out of the box.

&.


#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by NetIQ MailMarshal.
The Blackpool Sixth Form College.
#####################################################################################