Re: Changing the basic type in Lua

Niki Bowe <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
We use Asko's lnum patch to Lua with an older, slightly modified luabind.

Asko's patch allows lua to store ints and floats. We mainly use it to 
reduce the size of lua values while maintaining integer range and float 
support.
The only modification we made to Luabind for this was to make it use 
lua_pushinteger in some of its primitive converters.

If you are just changing lua_Number (and not using lnum) then you should 
be fine with an unmodified luabind.



Kristoffer Danielsson wrote:
> If I recall correctly, Lua uses floats to store numbers. There are 
> patches that change this setting, so that int32 or int64 is used 
> instead - possibly yielding a performance boost.
>  
> Would luabind work correctly if such a patch was applied?
>
> ------------------------------------------------------------------------
> Hitta inspiration till middagsmaten! MSN Mat & Dryck <http://mat.msn.se/>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> ------------------------------------------------------------------------
>
> _______________________________________________
> luabind-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luabind-user
>   


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.