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

Re: Integers



"Chris Double" <chris.double@double.co.nz> writes:

> I'm calling a C function from Goo that can return an integer greater
> than the 30 bits that Goo uses. How can I represent that value in Goo
> so I can later pass it to another C function that requires the full
> value?
> 
> Currently from C code, I'm using YPint(...) to convert the unsigned
> long to an <int> to be passed back to Goo and this is where the
> information is being lost. What can I pass it back to Goo as to keep
> the bits? 

the plan is to use bignums and to revamp the int support to have
bignums and more generally mathematical integers.  i'll add this to
the wishlist.  i'm trying to stage this so that i wait until crucial
compiler optimizations are in place.

it would be easy enough to add a machine-word class for shuttling back
and forth all bits in the meanwhile.  let me know how pressing this
is. 

jonathan