On Wed, Mar 6, 2013 at 4:37 PM, Pritam Dey <[email protected]> wrote: > Great Thanks to you guys: > > Just need to stuck myself from two more areas. > > From the same doc: > > (a) While Fixnum values are immediate, Bignum objects are not — > assignment and parameter passing work with references to objects, not > the objects themselves. - Actually as far as I know we are passing the > references to the objects,not the actual objects. But here I couldn't > follow the taste.
See earlier > (b)When a calculation involving Bignum objects returns a result that > will fit in a Fixnum, the result is automatically converted. - In `C` I > found some rules such automatic conversions. But does the same > applicable here also or other rules defined here specially for Ruby? See ealier > (c)For the purposes of the bitwise operations and [], a Bignum is > treated as if it were an infinite-length bitstring with 2’s complement > representation. - Why so? Because it's the most reasonable thing to do when dealing with binary numbers of arbitrary number of bits. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ -- [email protected] | https://groups.google.com/d/forum/ruby-talk-google?hl=en --- You received this message because you are subscribed to the Google Groups "ruby-talk-google" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
