On Fri, Sep 19, 2014 at 12:55 PM, Mike Cowlishaw <[email protected]>
wrote:
>
>
>
> On further reflection, the conditional expression cannot be merged with a
> simple redefinition. The conditional expressions have the "shortcut"
> feature where not all of the expressions need to be evaluated. The
> conditionals will still need to be a special case because of that.
>
> Also on further reflection .. perhaps the conditional case could drop the
> shortcut feature. In other words: all the expressions are evaluated, and
> if any of them are true then the THEN/WHEN path is taken.
>
>
> No, we can't do that. The whole point of that feature was to allow for
the shortcut to happen! This allows for tests like
if a~isa(.String), a~length > 0 then
to work. This instruction would give an error if all of the expressions
are evaluated because the second test is only value if the first test is
true. Making that change would break every single program I've written that
uses that construct since I only use that sort of conditional because of
the shortcut behaviour.
Rick
> Especially in the select case the expressions are likely constants
> anyway. One loses the 'shortcut' ability -- but even in NetRexx I was a
> bit worried that it wasn't very general. So a different approach to
> shortcuts might work better.
>
> Mike
>
>
>
> ------------------------------------------------------------------------------
> Slashdot TV. Video for Nerds. Stuff that Matters.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
> _______________________________________________
> Oorexx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
------------------------------------------------------------------------------
Slashdot TV. Video for Nerds. Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel