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-Thread: 103376,eca91508b02e7e97 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!out04a.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!news.mixmin.net!proxad.net!feeder1-2.proxad.net!fdn.fr!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <4676C27D.2050608@obry.net> Date: Mon, 18 Jun 2007 19:35:57 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: "Alex R. Mosteo" Subject: Re: Amount of copying on returned constant objects References: <5dfsfnF1qav8bU1@mid.individual.net> <46730bf5$0$23134$9b4e6d93@newsspool1.arcor-online.net> <5dntd6F35jc57U1@mid.individual.net> In-Reply-To: <5dntd6F35jc57U1@mid.individual.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 18 Jun 2007 19:36:05 CEST NNTP-Posting-Host: 82.120.20.90 X-Trace: 1182188165 news.orange.fr 25948 82.120.20.90:2734 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:16224 Date: 2007-06-18T19:36:05+02:00 List-Id: Alex R. Mosteo a �crit : > type Constant_Access is access constant Element_Type; > function Element (Key : Key_Type) return Constant_Access; Or in a more Ada 2005 way: function Element (Key : Key_Type) return access constant Element_Type; Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595