home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.forth
- Path: sparky!uunet!gumby!destroyer!news.iastate.edu!bible
- From: bible@iastate.edu (Anthony E Bible)
- Subject: Question: programming practice
- Message-ID: <BzMquL.2CE@news.iastate.edu>
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames, IA
- Date: Mon, 21 Dec 1992 22:08:42 GMT
- Lines: 30
-
- I am writing a little program in which it is most reasonable to name a
- couple of the words AND and IMMEDIATE. These are already defined, of course,
- and some of the later words use the new AND while others use the FORTH AND. In
- order to distinguish between the two I either have to switch the current
- vocabulary temporarily to FORTH or I have to define a different word to
- distinguish between the two. I opted to define FORTH-AND to point to FORTH's
- AND so I could use the "clean" name for my program. I don't much care for this
- either, but having a "bunch" of vocabulary bookkeeping stuck in the middle of
- a word detracts from the clarity of it's function, e.g.,
-
- DUP FORTH-AND IF ...
-
- versus
-
- DUP FORTH AND MYVOC DEFINITIONS IF ...
-
-
- Hmmm. Maybe I don't need DEFINITIONS in there. Anyway, you see my point I
- hope. I haven't written any IMMEDIATE words yet, but I may end up having some,
- and I can scarcely immagine using more than one word for that.
-
-
- I would be interested to know how others would approach this problem,
- or, if you think I'm just being anal retentive and this is not a problem, I'd
- like to hear your views on that too.
-
- Thanks.
-
- Regards,
- tony
-