Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #36649
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Search order - why usually two times "Forth"? |
| Date | 2015-02-18 11:31 +0000 |
| Organization | Institut fuer Computersprachen, Technische Universitaet Wien |
| Message-ID | <2015Feb18.123119@mips.complang.tuwien.ac.at> (permalink) |
| References | <slrnme53rj.1qm.empty.buffersYOU-DONT-WANT-THIS@Ferrycy.localdomain> <2015Feb17.135426@mips.complang.tuwien.ac.at> <slrnme72k9.7sh.empty.buffersYOU-DONT-WANT-THIS@Ferrycy.localdomain> |
empty-buffers <empty.buffersYOU-DONT-WANT-THIS@gmail.NEITHER-THIS.com> writes:
>In comp.lang.forth, Anton Ertl wrote:
>
>> The reason we do it in Gforth is such that programs that contain
>> idioms like
>>
>> vocabluary foo
>> foo definitions
>>: bar ... ;
>> forth definitions
>>
>> (i.e., classic fig-Forth days usage) work. Programs that use ALSO
>> still work, and I don't remember ever getting a report of program
>> failure because of the double occurence of FORTH.
>
>If I understood, the reason is, that - from what I see - in FIG-Forth
>"foo" (from example above) sets itself as first position in search order,
>but _not_ replacing present vocabulary "on top" ("built-in ALSO")?
fig-Forth has no search order in the Forth 94 sense. It has the
CONTEXT vocabulary, that'ss all. But CONTEXT always includes all the
words in FORTH (or is it the CONTEXT at the time of the definition of
the new vocabulary) at the time of the definition of the new
vocabulary (IIRC). So it's somewhat similar to having a search order
with 2 elements, with the bottom element being FORTH. Anyway, no
ALSO.
FOO would set itself as the new CONTEXT.
- 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 2014: http://www.euroforth.org/ef14/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Search order - why usually two times "Forth"? empty-buffers <empty.buffersYOU-DONT-WANT-THIS@gmail.NEITHER-THIS.com> - 2015-02-17 00:46 +0000
Re: Search order - why usually two times "Forth"? "Alex McDonald" <blog@rivadpm.com> - 2015-02-17 09:33 +0000
Re: Search order - why usually two times "Forth"? empty-buffers <empty.buffersYOU-DONT-WANT-THIS@gmail.NEITHER-THIS.com> - 2015-02-17 10:08 +0000
Re: Search order - why usually two times "Forth"? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2015-02-17 11:07 +0000
Re: Search order - why usually two times "Forth"? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-02-17 12:54 +0000
Re: Search order - why usually two times "Forth"? empty-buffers <empty.buffersYOU-DONT-WANT-THIS@gmail.NEITHER-THIS.com> - 2015-02-17 18:38 +0000
Re: Search order - why usually two times "Forth"? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-02-18 11:31 +0000
Re: Search order - why usually two times "Forth"? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2015-02-18 13:16 +0000
Re: Search order - why usually two times "Forth"? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-02-18 14:00 +0000
Re: Search order - why usually two times "Forth"? "Alex McDonald" <blog@rivadpm.com> - 2015-02-18 16:44 +0000
Re: Search order - why usually two times "Forth"? november.nihal@gmail.com - 2015-02-17 07:13 -0800
Re: Search order - why usually two times "Forth"? "Elizabeth D. Rather" <erather@forth.com> - 2015-02-17 08:21 -1000
Re: Search order - why usually two times "Forth"? "Alex McDonald" <blog@rivadpm.com> - 2015-02-17 18:43 +0000
Re: Search order - why usually two times "Forth"? "Elizabeth D. Rather" <erather@forth.com> - 2015-02-17 11:59 -1000
Re: Search order - why usually two times "Forth"? hughaguilar96@gmail.com - 2015-02-17 18:30 -0800
Re: Search order - why usually two times "Forth"? JennyB <jennybrien@googlemail.com> - 2015-02-18 04:01 -0800
Re: Search order - why usually two times "Forth"? hughaguilar96@gmail.com - 2015-02-18 18:13 -0800
Re: Search order - why usually two times "Forth"? "HAA" <someone@microsoft.com> - 2015-02-28 11:35 +1100
Re: Search order - why usually two times "Forth"? "Alex McDonald" <blog@rivadpm.com> - 2015-02-18 12:34 +0000
Re: Search order - why usually two times "Forth"? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-02-18 12:28 +0000
Re: Search order - why usually two times "Forth"? jacko <jackokring@gmail.com> - 2015-02-18 08:49 -0800
Re: Search order - why usually two times "Forth"? jacko <jackokring@gmail.com> - 2015-02-18 09:04 -0800
Re: Search order - why usually two times "Forth"? jacko <jackokring@gmail.com> - 2015-02-18 10:17 -0800
Re: Search order - why usually two times "Forth"? jacko <jackokring@gmail.com> - 2015-02-18 10:20 -0800
csiph-web