Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: ANS TC Magnet for Tick, >BODY, ['],etc Message-ID: <2194.UUL1.3#5129@willett.pgh.pa.us> Date: 2 Jan 91 12:38:41 GMT Organization: String, Scotch tape, and Paperclips. (in Pgh, PA) Lines: 68 Category 10, Topic 25 Message 15 Mon Dec 31, 1990 JAX at 20:35 PST Dennis --- Could you possibly print this out and drop it in the X3J14 hopper? Thank you very nicely. =jax= ------------------------------------------------------------------ X3J14 Proposal January 1, 1991 Page 1 of 1 Title: ROM-based Systems Quibble with >BODY Words: >BODY CREATE DOES> ENVIRONMENT? Abstract: >BODY as defined in BASIS14 may benefit from redefinition with an eye to portability between mixed RAM/ROM and RAM-only systems. Proposal: 8.1.0550 -- >BODY In conjunction with 5.3.2 "Addressable Memory" this construct and the underlying concepts of PFA appear to be ambiguous for ROMmed creatures of CREATE which contain address tokens in their PFA. Propose: "a-addr is the parameter field associated with the execution token w of a word defined via CREATE. The contents of this address may be constant data, such as an address token to memory where the data which makes the CREATEd word useful is stored (as is often the case in a ROMmed system), or such data itself (as is typically the case in a RAM-only system). If there is any question as to which is the case, a Standard program should compare the token returned by >BODY with the token returned by EXECUTEing the CREATEd word itself." The counter argument could be brought that the above technique would not work for CREATE ... DOES>. In such case another CREATE construct could be examined by a Standard program to determine what sort of PFAs CREATE creates. In any event, it is hard to imagine a truly portable Standard program that would want access to the internals of a CREATE ... DOES> word via >BODY. It would be safer in such cases simply to create some data structure that was more easily manipulable and then write a colon definition that performed the desired action upon it. Alternatively, perhaps a query string could be defined for the ENVIRONMENT? construct (8.1.1345) which could inform the Standard program as to whether CREATE words contain data or address pointers in their PFA's. Submitted by: Jack J. Woehr Voice: (303) 422-8088 Vesta Technology Inc. FAX: (303) 422-9800 7100 W. 44th Ave, Suite #101 BBS: (303) 278-0364 Wheat Ridge, CO 80033 jax@well.UUCP JAX on GEnie ----- This message came from GEnie via willett. You cannot Reply to the author using email. Please post a follow-up article, or use any instructions the author may have included (USMail addresses, telephone #, whatever). Report problems to: dwp@willett.pgh.pa.us or uunet!willett!dwp