home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / forth / 3654 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.5 KB  |  41 lines

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