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 8 of 17 Topic 3814 of 4287
Post > Topic >>

Re: Miser's CASE

by Alex McDonald <blog@[EMAIL PROTECTED] > Mar 15, 2008 at 05:33 AM

On Mar 15, 12:21 am, "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.

I'd caution against the use if a word like WHEN in this context. In
normal English usage WHEN is the time at which something happens. It
has connotations of asynchronous processing, perhaps as an interrupt
routine. As in

: wait-interrupt-****t ( ****t# -- )
  ****t-wait when ... some async actvity ... end-when ;

(wait-interrupt-****t returns immediately, but the WHEN END-WHEN body
is run asynchronously.)

WHEN doesn't imply some form of immediate inline IF test to me.

--
Regards
Alex McDonald
 




 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 3:31:24 CDT 2008.