On 23.04.2010, at 23:19, Herbert König wrote:
> 
> Hi Randal,
> 
> 
> RLS>   larger: anInteger
> RLS>   ^self max: anInteger
> RLS> Code re-use, bay-bee.
> 
> true but couldn't resist to throw blocks at a newbie myself :-))

Sure, but two blocks are just too scary ;)
Much more fun to figure out why this works:

larger: anInteger
        anInteger > self ifTrue: [^ anInteger]

- Bert -


_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to