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,45c4e8c210d7ef0d X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.n-ix.net!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 16 Feb 2009 11:40:01 +0100 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Another problem with "interface" References: <77ad6c6e-0830-4f0d-8a04-84be0fe9504c@33g2000yqm.googlegroups.com> In-Reply-To: <77ad6c6e-0830-4f0d-8a04-84be0fe9504c@33g2000yqm.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <49994281$0$31336$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 16 Feb 2009 11:40:01 CET NNTP-Posting-Host: d4ada482.newsspool4.arcor-online.net X-Trace: DXC=eUH>JikKVHI0YVY]kmLTlD4IUKcHba christoph.grein@eurocopter.com schrieb: > I guess you've confused GNAT beyond repair. > > The problem is your function Set_A (the rest is OK). Ada 2005 no > longer has return-by-reference functions, so you cannot return an > object of type New_A_Type. Uhm, I think that, still, you can call functions that will assign the (already existing) return objcect. Which was, IIUC, the point of coining the word "constructor function". X: constant New_A_T := Set_A; http://www.adacore.com/2007/05/28/gem-3/