Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #12658
| From | "Rod Pemberton" <do_not_have@notemailntt.cmm> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Use of VARIABLEs frequent or infrequent? And, C style operators. |
| Date | 2012-06-01 18:24 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <jqbfdo$ssh$1@speranza.aioe.org> (permalink) |
| References | (6 earlier) <mLednTYtI8m0eyLSnZ2dnUVZ_qmdnZ2d@supernews.com> <jpqgnf$qt3$1@speranza.aioe.org> <3NKdnYNbSeRRrFzSnZ2dnUVZ_h6dnZ2d@supernews.com> <jprq9v$u7c$1@speranza.aioe.org> <8dKdncVFodLPXVzSnZ2dnUVZ_hudnZ2d@supernews.com> |
"Elizabeth D. Rather" <erather@forth.com> wrote in message news:8dKdncVFodLPXVzSnZ2dnUVZ_hudnZ2d@supernews.com... > On 5/26/12 1:52 PM, Rod Pemberton wrote: > > "Elizabeth D. Rather"<erather@forth.com> wrote in message > > news:3NKdnYNbSeRRrFzSnZ2dnUVZ_h6dnZ2d@supernews.com... > >> On 5/26/12 2:02 AM, Rod Pemberton wrote: > >>> "Elizabeth D. Rather"<erather@forth.com> wrote in message ... > >>>> The sequence OVER + SWAP is often defined as the word BOUNDS. Tastes > >>>> vary as to whether this improves or impedes readability. > >>>> > >>>> A good clue as to whether a sequence is worth naming is whether it > >>>> makes logical sense that could be captured in an English name, as > >>>> opposed to some functional jargon such as O+S. This one is marginal > >>>> :-) > >>> > >>> What ... ? > >>> > >>> So, for the OVER + SWAP sequence, you're _seriously_ telling me > >>> BOUNDS makes more "logical sense" of what "could be captured in > >>> an English name" than O+S? > >>> > >>> C'mon now ... > >> > >> As others have pointed out, BOUNDS conveys the *purpose* of the action. > >> Good names reflect purpose and intent, not just a summary of details. > > > > There is nothing in BOUNDS to convey that it is OVER + SWAP. One must > > either know, look it up, or display it's definition. There is zero > > information content as to what BOUNDS means when one reads "BOUNDS". > > The important thing is that its stack arguments are ( sv n -- sv+n sv ) > which are appropriate DO...LOOP parameters to run a loop with indices sv > through sv+n-1. There may be a number of ways to do this other than OVER > + SWAP. The focus should be on what words do, not how they do them. > Well, I'm not finding BOUNDS officially defined ... anywhere. ;-) Where is/was BOUNDS defined? Or, where did it come into usage? BOUNDS is not defined for fig-Forth. BOUNDS is not defined for Forth-79. BOUNDS is not defined for Forth-83. BOUNDS is not defined for ANS-94 (ANSI X3.215-1994). BOUNDS is not defined in Forth200x draft 9. BOUNDS is not defined in Forth200x draft 10. BOUNDS is not defined in "Starting Forth" by Leo Brodie. BOUNDS is not defined in "Thinking Forth" by Leo Brodie. BOUNDS is not defined in "Forth - The Early Years" by Chuck Moore. BOUNDS is defined for Open Firmware FCODE (IEEE Std. 1275-1994). BOUNDS is defined as an example in Forth200x draft 11. BOUNDS is defined in Bill Muench's eForth. BOUNDS is defined in Tom Zimmer's TCOM. BOUNDS is defined in GNU Forth BOUNDS is defined in Laxen and Perry's 8086Forth. BOUNDS is defined in Wil Baden's various wordsets. FYI, the BOUNDS example in Forth200x draft 11 seems to be the same example as that in "Programming Forth" by Stephen Pelc ... The Open Firmware FCODE specification defines two wordsets. The first is a selection of Forth words which the specification says are _all_ from ANS-94. That list includes a few words which are *not* in ANS-94 such as BOUNDS and -ROT ... Why did the Open Firmware creators believe BOUNDS was in ANS-94? The earliest use of BOUNDS in what I have are Laxen & Perry's 8086Forth '84 and Wil Baden FORML '87. Rod Pemberton BTW, are the FORML Conferences (Forth Modification Laboratory) available online somewhere? I'm not finding them ...
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Use of VARIABLEs frequent or infrequent? And, C style operators. "Rod Pemberton" <do_not_have@notemailntt.cmm> - 2012-05-22 16:01 -0400
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Mark Wills <markrobertwills@yahoo.co.uk> - 2012-05-22 14:58 -0700
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Ed" <invalid@nospam.com> - 2012-05-23 13:19 +1000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Paul Rubin <no.email@nospam.invalid> - 2012-05-22 23:44 -0700
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Nomen Nescio <nobody@dizum.com> - 2012-05-23 12:30 +0200
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Paul Rubin <no.email@nospam.invalid> - 2012-05-23 08:37 -0700
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Paul Rubin <no.email@nospam.invalid> - 2012-05-23 23:32 -0700
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. stephenXXX@mpeforth.com (Stephen Pelc) - 2012-05-24 13:24 +0000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Paul Rubin <no.email@nospam.invalid> - 2012-05-24 09:40 -0700
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. stephenXXX@mpeforth.com (Stephen Pelc) - 2012-05-24 20:52 +0000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Paul Rubin <no.email@nospam.invalid> - 2012-05-24 14:17 -0700
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. stephenXXX@mpeforth.com (Stephen Pelc) - 2012-05-25 08:10 +0000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Paul Rubin <no.email@nospam.invalid> - 2012-05-25 01:50 -0700
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Fritz Wuehler <fritz@spamexpire-201205.rodent.frell.theremailer.net> - 2012-05-25 22:39 +0200
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Paul Rubin <no.email@nospam.invalid> - 2012-05-26 22:02 -0700
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Nomen Nescio <nobody@dizum.com> - 2012-05-25 14:33 +0200
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. stephenXXX@mpeforth.com (Stephen Pelc) - 2012-05-25 16:50 +0000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-05-25 20:30 +0000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. hwfwguy@gmail.com - 2012-05-30 11:23 -0700
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Peter Knaggs" <pjk@bcs.org.uk> - 2012-05-29 20:00 +0100
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Rod Pemberton" <do_not_have@notemailntt.cmm> - 2012-05-24 07:39 -0400
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-05-24 15:37 +0000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Elizabeth D. Rather" <erather@forth.com> - 2012-05-22 21:18 -1000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Elizabeth D. Rather" <erather@forth.com> - 2012-05-24 18:27 -1000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Rod Pemberton" <do_not_have@notemailntt.cmm> - 2012-05-25 03:55 -0400
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Elizabeth D. Rather" <erather@forth.com> - 2012-05-25 07:38 -1000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Rod Pemberton" <do_not_have@notemailntt.cmm> - 2012-05-25 15:17 -0400
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Elizabeth D. Rather" <erather@forth.com> - 2012-05-25 10:05 -1000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Rod Pemberton" <do_not_have@notemailntt.cmm> - 2012-05-26 08:02 -0400
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Coos Haak <chforth@hccnet.nl> - 2012-05-26 14:31 +0200
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Doug Hoffman <glidedog@gmail.com> - 2012-05-26 09:55 -0400
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. BruceMcF <agila61@netscape.net> - 2012-05-26 07:04 -0700
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Elizabeth D. Rather" <erather@forth.com> - 2012-05-26 09:41 -1000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Rod Pemberton" <do_not_have@notemailntt.cmm> - 2012-05-26 19:52 -0400
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Elizabeth D. Rather" <erather@forth.com> - 2012-05-26 19:49 -1000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Ed" <invalid@nospam.com> - 2012-06-01 13:39 +1000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Elizabeth D. Rather" <erather@forth.com> - 2012-05-31 19:27 -1000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Rod Pemberton" <do_not_have@notemailntt.cmm> - 2012-06-01 18:24 -0400
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-06-02 03:09 -0500
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-05-27 02:23 -0500
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Harry Vaderchi" <admin@127.0.0.1> - 2012-05-27 11:54 +0100
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. "Elizabeth D. Rather" <erather@forth.com> - 2012-05-27 07:25 -1000
Re: Use of VARIABLEs frequent or infrequent? And, C style operators. Alex McDonald <blog@rivadpm.com> - 2012-05-27 11:13 -0700
csiph-web