Hi,
In message "Re: Array#nitems and Object#nil?"
on Fri, 11 Mar 2005 15:57:32 +0900, Eliah Hecht <eliahhecht / gmail.com> writes:
|In case I'm being unclear, if I do
|class Thing
| def nil?
| true
| end
|end
|t = Thing.new
|I think it should be the case that [t, nil, 7].nitems returns 1,
|instead of 2 as it currently does.
Nil is a nil is a nil. Defining nil? to be true doesn't make
something nil. It's just a false predicate.
matz.