[fpc-devel] Fwd: While - Otherwise Statement

wkitty42 at windstream.net wkitty42 at windstream.net
Mon Oct 12 22:48:46 CEST 2015


On 10/12/2015 03:43 PM, Martin Frb wrote:
> Actually the above does not represent what the actual feature request is about
>
> The "else" is to be executed, after the while (even if the while looped ZERO
> times).
> But it is to be skipped if the while exited via break (and only then).
>
> For that reason "else" or "otherwise" are badly chosen keywords. Because they
> imply a different function.

exactly my and others' points... "and" would be better but then one might just 
as easily use a goto to jump around that part if break was used to get out of 
the loop...

anyway, it seems that no matter what the discussion, it won't make it into the 
compiler... that according to another post from a compiler dev ;)

-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list* unless
        private contact is specifically requested and granted.



More information about the fpc-devel mailing list