by Bruce McFarling <agila61@[EMAIL PROTECTED]
>
Mar 15, 2008 at 01:33 PM
On Mar 14, 8:21 pm, "Ed" <nos...@[EMAIL PROTECTED]
> wrote:
> "Mark W. Humphries" <m...@[EMAIL PROTECTED]
> wrote in
messagenews:68cfbbe8-8cf3-461d-99b5-bf34f619cb66@[EMAIL PROTECTED]
>
> > On Mar 14, 9:43 am, "Ed" <nos...@[EMAIL PROTECTED]
> wrote:
> > ...
> > I've named one of the two conditional exits WHEN
> >http://wiki.forthfreak.net/index.cgi?TerseControlStructures,
I don't
> > know is this is common usage though:
>
> > : example1 full? unless eat-lunch ;
> > : example2 hungry? when eat-lunch ;
>
> Interesting. I hadn't seen that before.
>
> I don't know that there's been common use of the name WHEN
> in forth. I checked several popular '94 forths before using it. I
> saw WHEN used once or twice in control structure articles early
> on in FD but nothing seems to have come of them.
>
> I chose WHEN because it exists in control structure statements
> of other languages and therefore would be familiar to users in
> that context. Similarly with COND.
IFSO Maybe? As terse as WHEN and reading
IFSO ... action ... ELSE
is not so bad.
I call the conditional exits ?EXIT and ??EXIT on the convention of a
leading ? for something that acts on non-FALSE and leading ?? for
something that acts on FALSE.