Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #11415
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Message-not-understood and stack effects |
| Date | 2012-04-19 19:31 +0200 |
| Organization | 1&1 Internet AG |
| Message-ID | <jmpi69$ip7$1@online.de> (permalink) |
| References | (1 earlier) <vY2dnZfxgr-hNhDSnZ2dnUVZ_qidnZ2d@supernews.com> <2012Apr18.114847@mips.complang.tuwien.ac.at> <1qWdnR5g8rfrAxPSnZ2dnUVZ_oudnZ2d@supernews.com> <2012Apr19.134726@mips.complang.tuwien.ac.at> <MbGdnfJiQpSUlw3SnZ2dnUVZ_sWdnZ2d@supernews.com> |
Andrew Haley wrote: > Because it ges against the very idea of a proxy. A proxy is a class > that can stand in for another class: to an outsider it has the same > properties as the class it's proxying for. A collection does not have > this property. A vector is not a proxy for a scalar. Yes, normally you should use an iterator (map, foreach) in a collection to do things like that. This takes a quotation as argument, and the quotation sends messages to the elements. BTW: The implementation of generic proxies (which proxy every other object, and only define the protocol how to do so) is greatly helped by having a signature for each method available to the system (we *can* do that in Forth, it would mean that the stack effect for a method is not just a comment, but information that is stored with the selector). If the proxy talks to a remote object, you also need serialization for whatever data you send to that object, and to do that, some sort of type information is needed (e.g. addr len would be preferrable to addr u, because with that information, the proxy can know that it has to send len bytes starting at addr to the destination). -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Message-not-understood and stack effects anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-17 13:16 +0000
Re: Message-not-understood and stack effects "A. K." <akk@nospam.org> - 2012-04-17 18:20 +0200
Re: Message-not-understood and stack effects anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-17 16:37 +0000
Re: Message-not-understood and stack effects vandys@vsta.org - 2012-04-17 17:43 +0000
Re: Message-not-understood and stack effects Alex McDonald <blog@rivadpm.com> - 2012-04-17 10:40 -0700
Re: Message-not-understood and stack effects Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-17 12:41 -0500
Re: Message-not-understood and stack effects anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-18 09:48 +0000
Re: Message-not-understood and stack effects Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-18 05:59 -0500
Re: Message-not-understood and stack effects John Passaniti <john.passaniti@gmail.com> - 2012-04-18 08:52 -0700
Re: Message-not-understood and stack effects anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-19 11:47 +0000
Re: Message-not-understood and stack effects Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-19 07:50 -0500
Re: Message-not-understood and stack effects John Passaniti <john.passaniti@gmail.com> - 2012-04-19 07:14 -0700
Re: Message-not-understood and stack effects Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-19 09:31 -0500
Re: Message-not-understood and stack effects Bernd Paysan <bernd.paysan@gmx.de> - 2012-04-19 19:31 +0200
Re: Message-not-understood and stack effects anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-20 10:17 +0000
Re: Message-not-understood and stack effects John Passaniti <john.passaniti@gmail.com> - 2012-04-20 07:52 -0700
Re: Message-not-understood and stack effects anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-20 15:26 +0000
Re: Message-not-understood and stack effects John Passaniti <john.passaniti@gmail.com> - 2012-04-24 06:09 -0700
Re: Message-not-understood and stack effects anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-24 16:52 +0000
Re: Message-not-understood and stack effects John Passaniti <john.passaniti@gmail.com> - 2012-04-28 18:38 -0700
Re: Message-not-understood and stack effects "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-04-29 00:19 -0400
Re: Message-not-understood and stack effects John Passaniti <john.passaniti@gmail.com> - 2012-04-29 11:16 -0700
Re: Message-not-understood and stack effects "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-04-29 21:55 -0400
Re: Message-not-understood and stack effects John Passaniti <john.passaniti@gmail.com> - 2012-05-01 14:44 -0700
Re: Message-not-understood and stack effects "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-05-02 05:35 -0400
Re: Message-not-understood and stack effects Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-05-02 06:29 -0500
Re: Message-not-understood and stack effects anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-05-02 12:23 +0000
Re: Message-not-understood and stack effects Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-05-02 08:43 -0500
Re: Message-not-understood and stack effects Doug Hoffman <glidedog@gmail.com> - 2012-05-02 11:06 -0400
Re: Message-not-understood and stack effects Bernd Paysan <bernd.paysan@gmx.de> - 2012-05-03 18:41 +0200
Re: Message-not-understood and stack effects Doug Hoffman <glidedog@gmail.com> - 2012-05-03 13:07 -0400
Re: Message-not-understood and stack effects Bernd Paysan <bernd.paysan@gmx.de> - 2012-05-04 02:46 +0200
Re: Message-not-understood and stack effects Doug Hoffman <glidedog@gmail.com> - 2012-05-03 22:09 -0400
Re: Message-not-understood and stack effects anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-05-03 09:14 +0000
Re: Message-not-understood and stack effects Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-05-03 04:33 -0500
Re: Message-not-understood and stack effects Mark Wills <markrobertwills@yahoo.co.uk> - 2012-05-02 12:58 -0700
Re: Message-not-understood and stack effects vandys@vsta.org - 2012-05-02 20:43 +0000
Re: Message-not-understood and stack effects Mark Wills <markrobertwills@yahoo.co.uk> - 2012-05-02 13:48 -0700
Re: Message-not-understood and stack effects John Passaniti <john.passaniti@gmail.com> - 2012-05-03 10:42 -0700
TypoForth (was: Message-not-understood and stack effects) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-30 13:47 +0000
Re: TypoForth (was: Message-not-understood and stack effects) BruceMcF <agila61@netscape.net> - 2012-04-30 08:38 -0700
Re: TypoForth (was: Message-not-understood and stack effects) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-30 16:23 +0000
Re: TypoForth (was: Message-not-understood and stack effects) BruceMcF <agila61@netscape.net> - 2012-04-30 09:41 -0700
Re: TypoForth (was: Message-not-understood and stack effects) John Passaniti <john.passaniti@gmail.com> - 2012-05-01 14:53 -0700
Re: Message-not-understood and stack effects anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-21 12:34 +0000
csiph-web