Eric Hodel wrote:
> On Oct 10, 2007, at 15:31 , Martin DeMello wrote:
> 
>> irb(main):001:0> puts nil
>> nil
>> => nil
>> irb(main):002:0> print nil
>> nil=> nil
>> irb(main):003:0> class NilClass
>> irb(main):004:1> def inspect
>> irb(main):005:2> "foo"
>> irb(main):006:2> end
>> irb(main):007:1> end
>> => foo
> 
> it calls #to_s.

Hm. What's going on here then:

$ ruby -e 'p nil.to_s'
""
$ ruby -e 'print nil'
nil

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407