<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
What on earth are you talking about?????&nbsp; That is #inject:into:, known in functional programming as a fold.&nbsp; Perl doesn't even have a fold operator.&nbsp; The only part that looks bad is the block, and only because I don't know what #ifNotNil: returns if the block isn't nil.&nbsp; Plus with this I have the option of doing a home return when I first encounter the nil, while your Null will have to keep chomping until the end. :)<br><br>&gt; Date: Thu, 26 Jul 2007 20:06:32 +0100<br>&gt; From: keith_hodges@yahoo.co.uk<br>&gt; To: squeak-dev@lists.squeakfoundation.org<br>&gt; Subject: Re: Message Eating Null - article<br>&gt; <br>&gt;  <br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Yuck, I wouldn't do either of those.  I would do:<br>&gt; &gt;<br>&gt; &gt; widget setStringValue: #(office phone lastNumberDialed asString) <br>&gt; &gt; inject: person into: [:obj :sel| o == nil ifTrue: [ nil ] ifFalse: [ <br>&gt; &gt; obj sel ] ]<br>&gt; &gt;<br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; you would?<br>&gt; <br>&gt; To me the above looks as close to perl as smalltalk is hopefully ever <br>&gt; likely to get!<br>&gt; <br>&gt; ;-)<br>&gt; <br>&gt; Keith<br>&gt; <br>&gt; p.s. Someone once accused me of being a PL/1 programmer in a former life.<br>&gt; <br>&gt; <br><br /><hr />See what you’re getting into…before you go there. <a href='http://newlivehotmail.com' target='_new'>Check it out!</a></body>
</html>