Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #46871

Replacing QUERY

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Replacing QUERY
Date 2016-05-02 17:05 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2016May2.190519@mips.complang.tuwien.ac.at> (permalink)

Show all headers | View raw


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.

What do you think?

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2016: http://www.euroforth.org/ef16/

Back to comp.lang.forth | Previous | Next — Next in thread | Find similar | Unroll thread


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