Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #46964
| From | Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Replacing QUERY |
| Date | 2016-05-06 19:35 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <20160506193528.31c8ce8b@_> (permalink) |
| References | <2016May2.190519@mips.complang.tuwien.ac.at> |
On Mon, 02 May 2016 17:05:19 GMT anton@mips.complang.tuwien.ac.at (Anton Ertl) wrote: > The Forth-94 appendix A.6.2.2040 suggests that QUERY can be replaced > with ACCEPT and EVALUATE, but that looks pretty far-fetched from the > function of QUERY as I understand the specification of QUERY. The > specification says: > > |6.2.2040 QUERY CORE EXT ( -- ) > | > |Make the user input device the input source. Receive input into the > |terminal input buffer, replacing any previous contents. Make the > |result, whose address is returned by TIB, the input buffer. Set >IN > to |zero. > > It seems that REFILL is a more likely replacement for QUERY in most > cases. It does not change the input source, but neither does ACCEPT, > and EVALUATE only changes it temporarily and not to the user input > device. Apart from that, QUERY seems to be a > user-input-device-specific version of REFILL, and therefore REFILL is > more likely replacement for QUERY in many cases. > Shouldn't ACCEPT and EVALUATE replace QUERY for compliance? Even though a system may provide QUERY or REFILL , I'm assuming that ACCEPT and EVALUATE should be used in the initial code for compliance instead of using QUERY. What basic, preliminary, or rudimentary definitions would you suggest for QUERY or REFILL? The ease of implementation of either or both in terms of the other may be a factor. The ease of replacing QUERY or REFILL with ACCEPT or EVALUATE may be a factor too. Rod Pemberton
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Replacing QUERY anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-05-02 17:05 +0000
Re: Replacing QUERY "HAA" <someone@microsoft.com> - 2016-05-06 18:27 +1000
Re: Replacing QUERY anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-05-06 14:26 +0000
Re: Replacing QUERY Albert van der Horst <albert@cherry.spenarnc.xs4all.nl> - 2016-05-06 15:29 +0000
Re: Replacing QUERY anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-05-06 16:18 +0000
Re: Replacing QUERY "HAA" <someone@microsoft.com> - 2016-05-07 11:55 +1000
Re: Replacing QUERY anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-05-07 12:34 +0000
Re: Replacing QUERY Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-05-06 19:35 -0400
Re: Replacing QUERY Albert van der Horst <albert@cherry.spenarnc.xs4all.nl> - 2016-05-07 11:49 +0000
Re: Replacing QUERY anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-05-07 12:17 +0000
Re: Replacing QUERY "Elizabeth D. Rather" <erather@forth.com> - 2016-05-07 08:45 -1000
Re: Replacing QUERY Albert van der Horst <albert@cherry.spenarnc.xs4all.nl> - 2016-05-08 00:37 +0000
Re: Replacing QUERY anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-05-08 14:05 +0000
Re: Replacing QUERY anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-05-07 12:39 +0000
csiph-web