Re: if then else - but why is there no ?else? in colorForth?

[email protected] (Albert van der Horst) Sun, 2 Nov 2008 14:47:21 +0100
Newsgroups gmane.comp.lang.forth.colorforth
Message-ID <[email protected]>
On Tue, Oct 28, 2008 at 06:21:13PM +0000, Jason Kemp wrote:
<SNIP>
> >
> >    But is this what is meant by "if-else-then" ?
> Not quite what I mean.  This is so hard to explain and I have spent
> literally hours over this.  I have never given ?if?s any thought in
> other languages.  Who says colorForth is simple?
>
> in this example
>   : w1 if w2 then w3 ;
> the if the ZF is not set then w2 will execute and then w3 will too.  If
> the ZF is set then only w3 goes.

Chuck Moore wanted to have if a meaning by itself. The same for
then.
Read this if you will:
   conditional: w2  then-goon-with w3 ready
>
> in this one:
>   : w1 if w2 ; then w3 ;

Now this makes sense too
     conditional: w2 ready  maybe-goon-here: w3 ready

>
>
> Still perplexed,
> Jason
>

--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- like all pyramid schemes -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst