Re:Source Conversion NetRexx---Java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re:Source Conversion NetRexx---Java

Syarzhuk Kazachehnka
>[If we don't split the expression, it will crash each time foo is
> null, because the foo.bar statement will always be evaluated if
> we write 'if foo = null | foo.bar > 5 then'.]
<skipped>
>As an aside, I would like to see one day shortcut Boolean
>operators in NetRexx.  Possibly maybe '|||' and '&&&'.  This is a
>very useful feature.  I miss it.
In Delphi, which is my primary language, there is a compiler switch. If
you say {$B+} that means you want all boolean expressions to evaluate
completely. If you say {$B-}, that means you want to "short-circuit"
them: F and X always equals to F, T or X always equals to T whatever X
is, therefore, in {$B-} state the compiler would not evaluate X at all.
Could that be implemented in NetRexx?

Syarzhuk

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>