Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: Miser's CAS...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 17 Topic 3814 of 4288
Post > Topic >>

Re: Miser's CASE

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.
 




 17 Posts in Topic:
Miser's CASE
"Ed" <nospam  2008-03-08 17:44:31 
Re: Miser's CASE
m_l_g3@[EMAIL PROTECTED]   2008-03-12 11:14:44 
Re: Miser's CASE
"Ed" <nospam  2008-03-14 12:43:47 
Re: Miser's CASE
"Ed" <nospam  2008-03-18 10:51:51 
Re: Miser's CASE
Coos Haak <chforth@[EM  2008-03-18 01:06:41 
Re: Miser's CASE
"Mark W. Humphries&q  2008-03-13 19:41:47 
Re: Miser's CASE
"Ed" <nospam  2008-03-15 11:21:21 
Re: Miser's CASE
Alex McDonald <blog@[E  2008-03-15 05:33:52 
Re: Miser's CASE
"Ed" <nospam  2008-03-16 16:15:33 
Re: Miser's CASE
"Mark W. Humphries&q  2008-03-15 09:45:59 
Re: Miser's CASE
John Doty <jpd@[EMAIL   2008-03-15 10:52:05 
Re: Miser's CASE
Bruce McFarling <agila  2008-03-15 13:33:37 
Re: Miser's CASE
Bruce McFarling <agila  2008-03-15 22:56:19 
Re: Miser's CASE
"Ed" <nospam  2008-03-16 18:48:04 
Re: Miser's CASE
Bruce McFarling <agila  2008-03-16 13:00:29 
Re: Miser's CASE
"Ed" <nospam  2008-03-18 12:33:40 
Re: Miser's CASE
Bruce McFarling <agila  2008-03-18 09:05:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 8:45:10 CDT 2008.