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