Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Peter Knaggs" Newsgroups: comp.lang.forth Subject: Re: Specifying interfaces of "read-ahead" words Date: Mon, 11 Feb 2013 08:29:27 -0000 Organization: A noiseless patient Spider Lines: 44 Message-ID: References: <6ee6566a-e1a5-4b62-8209-4b4f0613da5c@w4g2000vbk.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Injection-Info: mx05.eternal-september.org; posting-host="8c7a470a0c16a8a8641affb1a9a6ce52"; logging-data="7811"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1/mcDYaX+0l3myOG5uNZk" User-Agent: Opera Mail/12.14 (Win32) Cancel-Lock: sha1:EHvbGaedRne2nPE9pReQziZMaPs= Xref: csiph.com comp.lang.forth:19630 On Sat, 09 Feb 2013 23:17:49 -0000, Coos Haak wrote:= > > From the ANS standard: > 6.1.0560 >IN > to-in CORE > > ( -- a-addr ) > > a-addr is the address of a cell containing the offset in characters fr= om > the start of the input buffer to the start of the parse area. > > So it's an offset since 1995. This is a simple updating of the Forth 83 definition: >IN -- addr U,79 "to-in" The address of a variable which contains the present character offs= et within the input stream {{0..the number of characters in the input stream}}. See: WORD Which in turn is a simple adoption of the Forth 79 definition: >IN -- addr U,201 Leave the address of a variable which contains the present characte= r offset within the input stream {{0=E2=80=A61023}} =E2=80=9Cto-in=E2= =80=9D See: WORD ( ." FIND So we could say that it has ever been thus. On the other hand, my copy of FIG Forth (from August 1980) does not cont= ain a definition of >IN. -- = Peter Knaggs