View Single Post
rollercoaster375
Senior Member
 
Join Date: Mar 2005
Location: UIllinois (Champaign, IL)
Send a message via AIM to rollercoaster375 Send a message via MSN to rollercoaster375 Send a message via Yahoo to rollercoaster375 Send a message via Skype™ to rollercoaster375 
2006-04-16, 21:31

Quote:
Originally Posted by ghoti
Alright, I should have done my homework. It seems to be a rather nice OOP language, I just don't like the weak typing. And since you can write functions outside of classes, the "everything is an object" description isn't quite true.
That's not true. You can write methods outside of a distinct class, however, they are still methods, but they're added onto the base object (I forget the name at the moment). The call to "self." can be omitted in Ruby, hence giving the illusion of functions, however, they're still methods.

So actually, everything /is/ an object. (Even language Keywords!)

Last edited by rollercoaster375 : 2006-04-16 at 22:08.
  quote