1. Re: ex bloatware
Regarding "short-circuit":
Rob Craig writes:
> I had no trouble
> finding at least 3 programs on the Euphoria Web site
> that would break if short-circuit were used
Jiri Babor writes:
> Small price to pay. Please, break them! Jiri
Actually, one of them belonged to you
but upon closer inspection
I think it will be ok, since key will not be 0:
if key and graphics_mode(-1) then ...
Jiri Babor writes:
> Short-circuit versus complete evaluation argument is *not*
> just a matter of taste or convenience, as Irv seems to be
> suggesting. Short-circuit evaluation is a very sensible
> optimization...
> A very important side-effect of short-circuit evaluation is, as Andy
> already said, I think, the ability to use test constructs that would
> otherwise be illegal.
Yes, I agree.
I'm going to take a harder look at this. I'm starting to think
that the implementation won't be that difficult. Also,
I could issue a warning in cases where old
code might break, i.e. where a function with
side-effects is called to the right of "and" or "or"
in a boolean expression.
Regards,
Rob Craig
Rapid Deployment Software