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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,65b902127ca8a604 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp11-1.free.fr!not-for-mail Date: Fri, 26 Jun 2009 18:29:11 +0200 From: Damien Carbonne User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Issue with GNAT GPL 2009 and GtkAda References: <4A414EBB.8060204@free.fr> <1avd65rn49abv$.krcxo2gdzb16$.dlg@40tude.net> <4a43c9ce$0$420$426a74cc@news.free.fr> <4a44ae4e$0$6295$4f793bc4@news.tdc.fi> In-Reply-To: <4a44ae4e$0$6295$4f793bc4@news.tdc.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4a44f758$0$1538$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 26 Jun 2009 18:29:12 MEST NNTP-Posting-Host: 82.247.219.63 X-Trace: 1246033752 news-1.free.fr 1538 82.247.219.63:53418 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:6644 Date: 2009-06-26T18:29:12+02:00 List-Id: Niklas Holsti a �crit : > > Damien Carbonne writes: > >> > >> type Listener is interface; > >> procedure Process (L : in out Listener) is abstract; > ... > >> type Base is tagged null record; > ... > >> type Derived is new Base and Listener with null record; > >> overriding procedure Process (D : in out Derived); > >> > > Stephen Leake wrote: >> The problem is clear here. >> >> "D : in out Derived" is allowed to create a copy of the actual >> parameter. > > Huh? Do you mean that this "D" parameter may be passed by copy? But > "Derived" is a tagged type, and tagged types are passed by reference, > not by copy. Or so I thought. > I also thought that tagged types were always passed by reference, whatever the mode (in, out, in out) is. I'll have to read Ada RM ! If this is true, it means that using in/out/in out modes is almost impossible in the code I write if this code must be mixed with code from third party libraries (like GtkAda) that use access almost everywhere. sad.