Login  Register

Re: an elegant way to return a result

Posted by Peter Uhnak on Jun 30, 2015; 11:26am
URL: https://forum.world.st/an-elegant-way-to-return-a-result-tp4834837p4834849.html

Yeah, that should be >something aMsg ifNil: [ ^ nil ]<
I thought you were referring to something else originally. :)

On Tue, Jun 30, 2015 at 1:43 PM, [hidden email] <[hidden email]> wrote:
Am 30.06.15 um 13:40 schrieb Peter Uhnák:
Make sense if there's code in between.
not sure what you're saying. I mean, sending the message twice makes sense if you already know the outcome? Hmmm...


something aMsg ifNil:[ ^ something aMsg ]. "yay for guards!"
"much more code"
^ aNotherResult

Peter


--
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          mailto:[hidden email]
Fliederweg 1                         http://www.objektfabrik.de
D-71640 Ludwigsburg                  http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0         Fax: +49 7141 56 10 86 1