On Thu, Feb 02, 2006 at 05:54:47PM +1300, Andrew Errington wrote: > class myclass: > pass > > Now, given an object 'foo' how can I say "If foo is of type myclass then do > something".
Surely you're supposed to message 'foo' and ask it what class it is? Or, theoretically, ask it to do the task and don't be worried if it says "I can't!" (i.e. it isn't class:myclass) -jim (I learned OO with SmallTalk, and as far as I can see, all the current OO languages are too easy to use procedurally ...)
