Hi,
This has probably been reported before but if not I thought I might
mention it:
unpacking four chars as an unsigned long in little-endian byte order may
return a Bignum and not always a Fixnum as it says on page 384 in the
pickaxe book:
(255.chr * 4).unpack(“V”).first.class # => Bignum
This is as it should be but I was confused by the docs.
Regards,
Karsten
···
–
http://www.fastmail.fm - And now for something completely different