E
Elias Athanasopoulos
Hello!
As I have understood Ruby fixnums are passed by value and
you can grab the value as an integer like:
VALUE foo;
int i = (int) (foo >> 1);
Is there any way to get an explicit reference of the
value of the fixnum in C, without allocating new space, or using
a new integer pointer?
I.e. what &RFLOAT(foo)->value does.
Regards,
As I have understood Ruby fixnums are passed by value and
you can grab the value as an integer like:
VALUE foo;
int i = (int) (foo >> 1);
Is there any way to get an explicit reference of the
value of the fixnum in C, without allocating new space, or using
a new integer pointer?
I.e. what &RFLOAT(foo)->value does.
Regards,