From: Daniel Berger Date: 2015-02-06T10:23:54-07:00 Subject: [ruby-core:68049] Question about Array#pack and bignums --bcaec51969555ae171050e6eaf05 Content-Type: text/plain; charset=UTF-8 Hi, Between 1.8 and 1.9 it looks like there was a behavior change with Array#pack and values that are too large for the directive in question. I just wanted to make sure that this was expected behavior. # For example: [2**65].pack("I") Ruby 1.8 raised a RangeError here, while Ruby 1.9 and later returns "\x000\x000\x000\x00". Is this deliberate? Thanks, Dan --bcaec51969555ae171050e6eaf05 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Between 1.8 and 1.9 it looks like t= here was a behavior change with Array#pack and values that are too large fo= r the directive in question. I just wanted to make sure that this was expec= ted behavior.

# For example:
[2**65].pac= k("I")

Ruby 1.8 raised a RangeError here= , while Ruby 1.9 and later returns "\x000\x000\x000\x00".

Is this deliberate?

Thanks,

Dan


--bcaec51969555ae171050e6eaf05--