Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!MITCH.ENG.SUN.COM!wmb From: wmb@MITCH.ENG.SUN.COM Newsgroups: comp.lang.forth Subject: Factoring of CREATE Message-ID: <9008230617.AA28712@ucbvax.Berkeley.EDU> Date: 21 Aug 90 16:17:35 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: wmb%MITCH.ENG.SUN.COM@SCFVM.GSFC.NASA.GOV Organization: The Internet Lines: 23 > > CREATE (and other words) can be easily refactored as "take next word from > > input stream then invoke $CREATE" which takes a string argument. THis > > means that strings would have to be standardized. (Are you listening > > ANSI dudes?). > > Agreed! HERE! HERE! :-) Of course, this implies that EACH of those "other words" will need string versions too, i.e. $: $VARIABLE $CONSTANT $CODE and any other defining words that are present in one's system. Furthermore, user's would be advised, for consistency's sake, to make 2 versions of every CREATE ... DOES> word. In retrospect, I think it would be better if the CREATE forms (as opposed to the $CREATE form) did not exist. But that is water under the bridge. From where we stand today, the QUOTE-TO solution as given by Robert Berkey is probably the best way out of the jam. QUOTE-TO allows you pass a stack string to an existing defining word, e.g. " FOOBAR" ' CREATE QUOTE-TO Mitch