From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,39d97888ebb8bbec X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-12 08:38:08 PST Path: supernews.google.com!sn-xit-02!supernews.com!easynews!sjc-peer.news.verio.net!news.verio.net!hammer.uoregon.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: <9b25g9$gn7$1@trog.dera.gov.uk> Subject: Re: Copying by dispatching on remote access to class wide types Message-ID: Date: Thu, 12 Apr 2001 15:37:46 GMT NNTP-Posting-Host: 209.208.22.130 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 987089866 209.208.22.130 (Thu, 12 Apr 2001 11:37:46 EDT) NNTP-Posting-Date: Thu, 12 Apr 2001 11:37:46 EDT Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:6823 Date: 2001-04-12T15:37:46+00:00 List-Id: In article <9b25g9$gn7$1@trog.dera.gov.uk>, Kevin Rigotti says... > >What I would like to be able to do is have a function to take a local copy >of part of some remote data, of the form > > function copy(remote : Distributed_Object_T; .... ) return >Distributed_Object_T > >where calls dispatch on the controlling operand "remote" which would be a >derefence of a remote access to class wide type, and NOT on the returned >value (of variable size as determined by the other arguments) which is a >local copy of part of the remote data. That ought to be OK, as long as both the parameter and the return type always end up having the same tag. At least, I know it would be OK if they were both parameters. I haven't tried it with return values before... If you want them to be able to have *different* tags, then you should probably make one of them Distributed_Object_T'Class, so that it will only dispatch on the other one. I'd suggest the return value, but it depends on exactly what you want to do with it. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com