home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / forth / 3615 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  768 b 

  1. Path: sparky!uunet!wupost!cs.utexas.edu!torn!news.ccs.queensu.ca!qucdn!3034871
  2. Organization: Queen's University at Kingston
  3. Date: Sun, 13 Dec 1992 21:39:56 EST
  4. From: <3034871@QUCDN.QueensU.CA>
  5. Message-ID: <92348.2139563034871@QUCDN.QueensU.CA>
  6. Newsgroups: comp.lang.forth
  7. Subject:    Defining variables automatically
  8. Lines: 14
  9.  
  10. I'm wondering if it is possible to define a word that then defines
  11. new variables when it is executed.  That is,
  12.  
  13. : NewWord    100 [COMPILE] VARIABLE ;
  14.  
  15. The problem is, that when you call `NewWord' it prompts you for
  16. a variable name (as it should, logically speaking).
  17.  
  18. The question then, is, can the input be redirected somehow for
  19. the purpose of entering the variable names?
  20.  
  21. Thanks!
  22.   Ralph Siemsen
  23.   E-Mail:  <303-4871@QUCDN.QueensU.CA>
  24.