Qustion about validate: has:
keith hodges
keith.hodges at warwick.ac.uk
Fri Aug 11 12:24:30 UTC 2006
I found this code but I am wondering why not use #respondsTo:
Keith
====
validate: className has: selector
(Smalltalk hasClassNamed: className) ifFalse: [ "No validation
needed" ^ self ].
((Smalltalk at: className) basicNew perform: selector)
ifFalse:
[ MaObjectSerializationUserError signal: 'Need to implement
', selector, ' on ', className ]
____________________________________________________
Yahoo! Photos is now offering a quality print service from just 7p a photo. http://uk.photos.yahoo.com
More information about the Magma
mailing list