From: TRANS Date: 2005-10-05T23:58:58+09:00 Subject: Re: On NullClass or FalseClass#method_missing On 10/5/05, nobu.nokada@softhome.net wrote: > Hi, > > At Wed, 5 Oct 2005 21:48:35 +0900, > TRANS wrote in [ruby-core:06161]: > > As you can see I wanted to subclass NilClass, but this proved > > impossible, b/c there is no way to instantiate the class. Becasue of > > this one can't do > > As far as I thik, NilClass is not important in Ruby, but rather > trivial instead. It's just a singleton class for nil, although > it has a name occasionally. > > > unless o.x.y #null > > > > because null is considered true. So that's problematic to George too. > > > > So I'm wondering if Ruby might want to take this into account for the > > future, either by adding NullClass, or allowing for subclasses of > > NilClass. > > Perhaps, what you want would be context sensitive nil object. Yes, but isn't that a much more complex solution? Besides it can't but done in Ruby now can it? > > \ o) カラチ > > BTW, what does this mean? The city in Pakistan. Do you know of it? T.