Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #45297
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: SYNONYM question |
| Date | 2016-02-04 11:08 +0000 |
| Organization | Institut fuer Computersprachen, Technische Universitaet Wien |
| Message-ID | <2016Feb4.120858@mips.complang.tuwien.ac.at> (permalink) |
| References | <n8ssmo$aaa$1@dont-email.me> <56b25982$0$23831$e4fe514c@news.xs4all.nl> |
Albert van der Horst <albert@spenarnc.xs4all.nl> writes:
>Gerry Jackson <gerry@jackson9000.fsnet.co.uk> writes:
>>Having written the above, I just realised that exactly the same question
>>applies to a SYNONYM of a deferred word and using IS on the synonym.
>
>>defer p
>>synonym q p
>>' some-def is q
>
>>Again Gforth rejects this, but does accept
>>' some-def ' q defer!
>>which works correctly.
>
>>If these uses of SYNONYM are ambiguous conditions then it makes SYNONYM
>>less useful than it could be.
>
>Or it just proves that parsing words are evil ...
While parsing words are evil, this case does not show that. It just
shows that we did not build a word-type check into DEFER!, while we
perform such a check at text interpretation time in IS. The reason is
that DEFER! might occur inside a tight loop and a check could have a
measurable impact, while the text interpretation of IS costs so much
(and is therefore so rare) that the word-type check is peanuts in that
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 2015: http://www.rigwit.co.uk/EuroForth2015/
Back to comp.lang.forth | Previous | Next — Previous in thread | Find similar | Unroll thread
SYNONYM question Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-02-03 12:47 +0000
Re: SYNONYM question Mark Wills <markwills1970@gmail.com> - 2016-02-03 05:36 -0800
Re: SYNONYM question stephen@mpeforth.com (Stephen Pelc) - 2016-02-03 15:36 +0000
Re: SYNONYM question Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-02-03 17:26 +0000
Re: SYNONYM question Bernd Paysan <bernd.paysan@gmx.de> - 2016-02-27 00:07 +0000
Re: SYNONYM question hughaguilar96@gmail.com - 2016-02-26 18:44 -0800
Re: SYNONYM question Mark Wills <markwills1970@gmail.com> - 2016-02-04 02:17 -0800
Re: SYNONYM question Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-02-04 11:32 +0000
Re: SYNONYM question stephen@mpeforth.com (Stephen Pelc) - 2016-02-04 17:12 +0000
Re: SYNONYM question hughaguilar96@gmail.com - 2016-02-08 22:03 -0800
Re: SYNONYM question Bernd Paysan <bernd.paysan@gmx.de> - 2016-03-03 00:09 +0000
Re: SYNONYM question hughaguilar96@gmail.com - 2016-03-02 22:02 -0800
Re: SYNONYM question anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-03 15:16 +0000
Re: SYNONYM question Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-02-03 18:26 +0000
Re: SYNONYM question Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-02-03 20:09 +0000
Re: SYNONYM question Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2016-02-03 20:52 +0000
Re: SYNONYM question "Elizabeth D. Rather" <erather@forth.com> - 2016-02-03 15:59 -1000
Re: SYNONYM question Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-02-04 11:25 +0000
Re: SYNONYM question Mark Wills <markwills1970@gmail.com> - 2016-02-04 02:16 -0800
Re: SYNONYM question anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-04 11:18 +0000
Re: SYNONYM question anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-04 10:54 +0000
Re: SYNONYM question "HAA" <someone@microsoft.com> - 2016-02-04 23:35 +1100
Re: SYNONYM question Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-02-03 19:48 +0000
Re: SYNONYM question "HAA" <someone@microsoft.com> - 2016-02-04 11:07 +1100
Re: SYNONYM question anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-04 11:08 +0000
csiph-web