From: "Egil Høvik" <egilhovik@hotmail.com>
Subject: Re: Another problem with "interface"
Date: Mon, 16 Feb 2009 03:45:42 -0800 (PST)
Date: 2009-02-16T03:45:42-08:00 [thread overview]
Message-ID: <08268d1a-3347-47ce-ac70-0872fe0b9faa@p13g2000yqc.googlegroups.com> (raw)
In-Reply-To: X4adnZN39usr0ATUnZ2dnUVZ8r2dnZ2d@posted.plusnet
On Feb 16, 12:27 pm, Robert_Matthews <igno...@ramatthews.free-
online.co.uk> wrote:
> 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
Actually, it is when the protected type inherits an interface it
complains.
For me, at least, (using Gnat Pro 6.1.2) removing the inheritance
compiles OK...
next prev parent reply other threads:[~2009-02-16 11:45 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
2009-02-16 11:45 ` Egil Høvik [this message]
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