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... -- View this message in context: http://forum.world.st/value-a-trap-for-young-players-tp4634470.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
