comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Another problem with "interface"
Date: Mon, 16 Feb 2009 11:40:01 +0100
Date: 2009-02-16T11:40:01+01:00	[thread overview]
Message-ID: <49994281$0$31336$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <77ad6c6e-0830-4f0d-8a04-84be0fe9504c@33g2000yqm.googlegroups.com>

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/




  reply	other threads:[~2009-02-16 10:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16  9:53 Another problem with "interface" Robert_Matthews
2009-02-16 10:26 ` christoph.grein
2009-02-16 10:40   ` Georg Bauhaus [this message]
2009-02-16 11:27     ` Robert_Matthews
2009-02-16 11:45       ` Egil Høvik
2009-02-16 11:54     ` christoph.grein
2009-02-16 13:29 ` Dmitry A. Kazakov
2009-02-16 13:56   ` Georg Bauhaus
2009-02-17 16:28 ` Robert_Matthews
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox