In Slide 14, he shows that object orientation is defined by syntax:
Is OOP Really Useful For Scripting?
// OOP
fi = File::new("sample.dat", "r")
fi.binmode = true
line = fi.readline()
fi.close
// Non-OOP
fi = fopen("sample.dat", "r")
fbinmode(fi, true)
line = freadline(fi)
fclose(fi)
They claim that OOP way provides no usage benefits over the
more traditional way.
So, in other words, it's object oriented if the syntax is
object.method(argument), but not object-oriented if it's
method(object, argument).
http://www.ruby-lang.org/en/jaoo2001/mgp00017.html
Not even sure that point needs to be made since M makes such a big deal
about Ruby being pure OO. Did I completely midunderstand the article
below?
kenny
clinisys
If that's the case, he's assigned a pretty weak strawman position to
the naysayers. Odd, all the same.