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: g2news1.google.com!postnews.google.com!33g2000yqm.googlegroups.com!not-for-mail From: christoph.grein@eurocopter.com Newsgroups: comp.lang.ada Subject: Re: Another problem with "interface" Date: Mon, 16 Feb 2009 02:26:59 -0800 (PST) Organization: http://groups.google.com Message-ID: <77ad6c6e-0830-4f0d-8a04-84be0fe9504c@33g2000yqm.googlegroups.com> References: NNTP-Posting-Host: 80.156.44.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1234780019 29724 127.0.0.1 (16 Feb 2009 10:26:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 16 Feb 2009 10:26:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 33g2000yqm.googlegroups.com; posting-host=80.156.44.178; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 webwasher (Webwasher 6.8.3.4214) Xref: g2news1.google.com comp.lang.ada:3651 Date: 2009-02-16T02:26:59-08:00 List-Id: 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.