>>>>> "Herbert" == Herbert König <herbertkoe...@gmx.net> writes:
Herbert> larger: anInteger Herbert> "return the larger of self and anInteger Herbert> 6 larger: 10 Herbert> " Herbert> anInteger > self ifTrue: [^anInteger] ifFalse: [^self] or even larger: anInteger ^self max: anInteger Code re-use, bay-bee. And to see what defines "max:", open a "method finder", type "max:" in the proper window, and you can see the three classes that define "max:". The one closest to yours is "Magnitude", which is anything that has a linear comparability. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners