From: Jamal Soueidan Date: 2007-04-04T22:19:47+09:00 Subject: Re: Everything is a object? unknown wrote: > Yes. And I don't see how it's so surprising given plenty of languages > (including PHP) usually have many more keywords than Ruby has (some > have less, but they are less common). They have plenty, but they don't have something like defined?, they have functions that act as defined? keyword. > > Think about it a moment. Let's say I ask you: "Please send Steve > Somename a bunch of flow... Great example :D I love it :D > This whole "everything is an object" and "variables needn't to be > declared" is something di... Well someone should know her before me, to tell me about her, so basically someone knows about her? > >> if a.nil? >> p 'thanks'; >> end >> > > Indeed, if a has not been given a value yet, it cannot be "nil" ("nil" > *is* a value, and an object), so this will fail. That made me confused a little bit, How can nil be a class? and then a method in object base class (nil?) -- Posted via http://www.ruby-forum.com/.