home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / forth / 3008 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  2.5 KB

  1. Path: sparky!uunet!gatech!pitt!willett!ForthNet
  2. From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
  3. Newsgroups: comp.lang.forth
  4. Subject: Environmental Queries
  5. Message-ID: <4006.UUL1.3#5129@willett.pgh.pa.us>
  6. Date: 22 Aug 92 13:27:24 GMT
  7. Organization: EIEI-U
  8. Lines: 57
  9.  
  10. Category 10,  Topic 33
  11. Message 9         Fri Aug 21, 1992
  12. B.RODRIGUEZ2 [Brad]          at 22:45 EDT
  13.  
  14.                  ANSI X3J14 FORTH TECHNICAL PROPOSAL
  15.                      (X3J14 dpANS-3, March 1992)
  16.  
  17. TITLE:  Environmental queries should be known at compile time
  18.  
  19. SECTION:  6.1.1345 ENVIRONMENT?
  20.  
  21. SUMMARY:  The Standard currently does not specify when environ-
  22.      mental data is known.  Such data should be known at compile
  23.      time.
  24.  
  25. PROPOSAL:  Add the following text to section 6.1.1345:
  26.  
  27.           "If the attribute does not have a known value at the
  28.           time the program is compiled, then ENVIRONMENT? shall
  29.           return the 'unknown' result."
  30.  
  31. DISCUSSION:  A major weakness of the ENVIRONMENT? concept is that
  32.      it is not known, and cannot portably be known, which envi-
  33.      ronmental values can be queried successfully at compile
  34.      time, and which only at execution time.
  35.  
  36.      Official statements from the X3J14 Technical Committee (Doc.
  37.      No. X3J14/92-1PRC18R) have implied that both may occur:
  38.  
  39.           "in an embedded system environment, these tables would
  40.           likely reside on the host."  [i.e., the compiling
  41.           system]
  42.  
  43.           "It is expected that ENVIRONMENT? will most often be
  44.           used during compilation of program preludes."
  45.  
  46.           "It is true that not all responses to ENVIRONMENT? are
  47.           fixed at compile time."
  48.  
  49.      It has been noted previously (dpANS-2 PRC #18) that the
  50.      memory and execution time requirements of ENVIRONMENT? are
  51.      prohibitive at run time in many Forth applications.  The
  52.      assumption that seems to underlie the proposed use of
  53.      ENVIRONMENT? is that it can be queried at compile time.  But
  54.      this is nowhere stated in the dpANS document.
  55.  
  56.      This proposal would rectify this oversight, by specifying
  57.      that all environmental values are fixed at compile time.
  58.      This is my current understanding of the TC's intent.  If
  59.      this is not so, some explanatory text must be added to
  60.      clarify when environmental data is valid.
  61.  
  62. -----
  63. This message came from GEnie via willett.  You *cannot* reply to the author
  64. using e-mail.  Please post a follow-up article, or use any instructions
  65. the author may have included (USMail addresses, telephone #, etc.).
  66. Report problems to: dwp@willett.pgh.pa.us
  67.