comp.lang.ada
 help / color / mirror / Atom feed
From: Robert_Matthews <ignored@ramatthews.free-online.co.uk>
Subject: Re: Another problem with "interface"
Date: Mon, 16 Feb 2009 11:27:57 +0000
Date: 2009-02-16T11:27:57+00:00	[thread overview]
Message-ID: <X4adnZN39usr0ATUnZ2dnUVZ8r2dnZ2d@posted.plusnet> (raw)
In-Reply-To: 49994281$0$31336$9b4e6d93@newsspool4.arcor-online.net

Georg Bauhaus wrote:

> 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/

Indeed, that is my intent.
Note that if I use an ordinary record type, e.g.

 type New_A_Type is new A_Type with ...

then GNAT compiles things OK; it is when
I use a protected type it complains.

Robert





  reply	other threads:[~2009-02-16 11:27 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
2009-02-16 11:27     ` Robert_Matthews [this message]
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