Article View: comp.object.corba
Article #23Re: extensible structs/interoperability
From: Martin v.Loewis
Date: Wed, 28 Jun 2000 00:00
Date: Wed, 28 Jun 2000 00:00
26 lines
2079 bytes
2079 bytes
In article <u71z1icf9a.fsf@o2-3.ebi.ac.uk>,
Philip Lijnzaad <lijnzaad@ebi.ac.uk> wrote:
>this is essentially the same as your struct ...
No. The essential difference is that you can access a valuetype
on the language level in a polymorphic way, whereas you have to
unpack an any in a much more complicated procedure. Please note
that the subject is "extensible structs" - valuetypes are the
interoperable version of that, not the any type.
>Martin> valuetype hash{
>Martin> private sequence<item> items;
>Martin> public ValueBase get(in string key);
>Martin> public void set(in string key, in ValueBase value);
>Martin> };
>
>... and this is essentially the same as your interface, with the added
>inconvenience that the client will have to implement get and set, and that
>transmitting all the items maybe impossible due to bandwidth ...
No. The essential difference is that all invocations will be local,
as opposed to being remote - which is an essential difference if
you have a large number of items.
Regards,
Martin
Technical Details
Message-ID:
<8jdq3d$m6n$1@news.cs.tu-berlin.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8jc0ms$nqt$1@slb6.atl.mindspring.net> <8jc8pu$6d6$1@news.cs.tu-berlin.de> <u71z1icf9a.fsf@o2-3.ebi.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108bbb,222a36e4c2f8e995 X-Google-Attributes: gid108bbb,public X-Google-Thread: 10b07f,222a36e4c2f8e995 X-Google-Attributes: gid10b07f,public X-Google-Thread: f753e,222a36e4c2f8e995 X-Google-Attributes: gidf753e,public From: loewis@cs.tu-berlin.de (Martin v.Loewis) Subject: Re: extensible structs/interoperability Date: 2000/06/28 Message-ID: <8jdq3d$m6n$1@news.cs.tu-berlin.de> X-Deja-AN: 640145908 Content-Transfer-Encoding: 8bit References: <8jc0ms$nqt$1@slb6.atl.mindspring.net> <8jc8pu$6d6$1@news.cs.tu-berlin.de> <u71z1icf9a.fsf@o2-3.ebi.ac.uk> Content-Type: text/plain; charset=ISO-8859-1 X-Complaints-To: news@cs.tu-berlin.de X-Trace: news.cs.tu-berlin.de 962227117 22743 130.149.17.112 (28 Jun 2000 21:18:37 GMT) Organization: Technical University of Berlin, Germany Mime-Version: 1.0 NNTP-Posting-Date: 28 Jun 2000 21:18:37 GMT Newsgroups: comp.object.corba,comp.lang.java.corba,borland.public.jbuilder.corba-rmi