home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / forth / 4002 < prev    next >
Encoding:
Text File  |  1993-01-26  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.lang.forth
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!venezia!penev
  3. From: penev@venezia (Penio Penev)
  4. Subject: Re: FOR...NEXT in Eforth
  5. References: <1993Jan25.213716.10378@murdoch.acc.Virginia.EDU>
  6. Sender: nobody@ctr.columbia.edu
  7. Organization: Rockefeller University
  8. Date: Tue, 26 Jan 1993 06:40:29 GMT
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. Message-ID: <1993Jan26.064029.13614@sol.ctr.columbia.edu>
  11. Reply-To: penev@venezia.rockefeller.edu
  12. X-Posted-From: venezia.rockefeller.edu
  13. NNTP-Posting-Host: sol.ctr.columbia.edu
  14. Lines: 25
  15.  
  16. Julian V. Noble (jvn@fermi.clas.Virginia.EDU) wrote:
  17. : Thanks to all the kind folks who sent their implementations of DOES>
  18. : for Eforth.
  19. : Now I would like a show of hands: How many people agree with me that
  20. : the word NEXT is too important, universal, ubiquitous, etc. to be
  21. : taken over as the terminus of a FOR...NEXT loop? I would propose
  22. : that NEXT be reserved for its traditional purpose, and that the end
  23. : of a FOR...NEXT loop be called one of several possibilities:
  24.  
  25. It is so in indirect threaded FORTHs. When You have a native FORTH, it
  26. is not used. The former kind of FORTHs usually have a VOCABULARY
  27. ASSEMBLER and the NEXT should ne define as a macro in it. So its in
  28. VOCABULARY FORTH should not be a problem. Well, the Enginsh language
  29. has so few words...
  30.  
  31. I personally do not have a NEXT macro, since I use a native FORTH. I
  32. use lower case for the assembler words to distinguish them from FORTH
  33. words ( e.g. AND & and , OR & or ..). When I write CODE definitions, I
  34. finish them with ret . May be I could use END ( a shorcut for
  35. END-CODE) too. Yet another example of the saying: "The best tool for
  36. the FORTH programmer is a good thesaurus."
  37.  
  38. -- Penio.
  39.  
  40.