Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #45792
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: SYNONYM question |
| Date | 2016-03-03 00:09 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <nb7vb5$5mi$2@dont-email.me> (permalink) |
| References | <n8ssmo$aaa$1@dont-email.me> <64a71c9b-58ad-4459-b256-3a2c682f5976@googlegroups.com> <56b21c2d.1856808187@news.eternal-september.org> <376a679b-6368-48c8-8c34-9929ec32d347@googlegroups.com> |
Am Mon, 08 Feb 2016 22:03:17 -0800 schrieb hughaguilar96: > You don't know enough about ANS-Forth to write SYNONYM in ANS-Forth, > although I succeeded at doing this. No, you didn't quite, you e.g. didn't succeed with synonyms of values, where TO <synonym> works, or synonyms of deferred words, where IS <synonym> works. Though, of course, the Forth-2012 spec does not say that "to newname" has the same semantics as "to oldname", and also for IS and DEFER@ (deferred words). Or that ' newname execute and ' newname compile, always will do the same as ' oldname execute and ' oldname compile,. So you succeeded in creating a synonym that actually does what's specified, but no more. A quality implementation should behave well on all that, and that's impossible in ANS Forth, which is the actual reason for having SYNONYM in the standard instead of in a library. You can certainly argue that the Forth-2012 standard fell short, by only requiring those parts to work on a synonym, where your ANS Forth implementation already works, and it should more than just that. -- Bernd Paysan "If you want it done right, you have to do it yourself" net2o ID: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ* http://bernd-paysan.de/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next 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