On 12 June 2012 14:48, Milan Mimica <milan.mimica@gmail.com> wrote:
On 12 June 2012 14:27, Jeff Gray <jeff@rogerthedog.com> wrote:
So, for fun I wrote a PlayingCard class with two instance variables, suit and value. calling collect: [:eachCard | eachCard value] on a collection of cards didn't work as I'd expected, but of course 'value' is the method on Object that returns self.
Easily fixed by renaming the 'value' variable to faceValue (and associated accessors), but made me laugh...
 PlayingCard>>value will override Object>>value. Noting funny about that.
why not? i use value for own purposes.. of course, if it fits and if there's no other more appropriate name for an object's property
-- Milan Mimica http://sparklet.sf.net
-- Best regards, Igor Stasenko.