From: Francis Cianfrocca Date: 2006-09-19T04:33:05+09:00 Subject: Re: C extension question ------=_Part_67617_5967565.1158607913189 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/18/06, Aredridel wrote: > > DEC Alpha doesn't necessarily have sizeof(int) == sizeof(void *), so > please don't assume so. I hate fixing code that does that. ;-) It's been over five years since the last time I programmed an Alpha in C. Do you have Ruby running on yours? Are you running DEC/Unix on them? As I recall, pointers are always a flat 64-bits on Alpha but ints come in several flavors, so you would have to cast the void* carefully to keep from narrowing it, but it would fit just fine in a Ruby Bignum. Are you suggesting to use StringValue and StringValuePtr, and treat the void* as a char*? ------=_Part_67617_5967565.1158607913189--