From: Wiktor Moskwa <wiktorDOTmoskwa@gmail.com>
Subject: Re: Workqueues in Ada
Date: Sat, 28 Jul 2007 21:03:12 +0000 (UTC)
Date: 2007-07-28T21:03:12+00:00 [thread overview]
Message-ID: <f8gaug$cjt$1@atlantis.news.tpi.pl> (raw)
In-Reply-To: wcc7iok1cha.fsf@shell01.TheWorld.com
On 28.07.2007, Robert A Duff <bobduff@shell01.TheWorld.com> wrote:
> Wiktor Moskwa <wiktorDOTmoskwa@gmail.com> writes:
>> GNAT GPL 2007 outputs:
>> ======
>> (Ada 2005) cannot copy object of a limited type (RM-2005 6.5(5.5/2))
>> consider switching to return of access type
>> =====
>
> I would be very interested in seeing the code that causes this.
Here you are:
======
procedure Sample is
generic
type Element is limited private;
package Pkg is
function Get return Element;
end Pkg;
package body Pkg is
Item : Element;
function Get return Element is
begin
return Item;
end Get;
end Pkg;
package P
is new Pkg (Integer);
X : Integer := P.Get;
begin
null;
end Sample;
======
--
Wiktor Moskwa
next prev parent reply other threads:[~2007-07-28 21:03 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-28 17:00 Workqueues in Ada Wiktor Moskwa
2007-07-28 17:28 ` Dmitry A. Kazakov
2007-07-28 17:52 ` Wiktor Moskwa
2007-07-28 19:53 ` Simon Wright
2007-07-28 21:25 ` Wiktor Moskwa
2007-07-28 20:45 ` Dmitry A. Kazakov
2007-07-28 21:19 ` Wiktor Moskwa
2007-07-29 8:36 ` Dmitry A. Kazakov
2007-07-29 19:53 ` Wiktor Moskwa
2007-07-30 6:47 ` Niklas Holsti
2007-07-30 15:56 ` Matthew Heaney
2007-07-30 15:53 ` Matthew Heaney
2007-07-30 19:57 ` Wiktor Moskwa
2007-07-30 15:52 ` Matthew Heaney
2007-07-31 20:54 ` Wiktor Moskwa
2007-08-01 8:30 ` Dmitry A. Kazakov
2007-07-28 17:31 ` Jeffrey R. Carter
2007-07-28 17:56 ` Wiktor Moskwa
2007-07-28 20:18 ` Wiktor Moskwa
2007-07-28 20:48 ` Robert A Duff
2007-07-28 21:03 ` Wiktor Moskwa [this message]
2007-07-28 21:38 ` Robert A Duff
2007-07-28 22:12 ` Wiktor Moskwa
2007-07-29 0:30 ` Robert A Duff
2007-07-29 6:38 ` Jeffrey R. Carter
2007-07-29 6:34 ` Jeffrey R. Carter
2007-07-29 6:30 ` Jeffrey R. Carter
2007-07-28 21:54 ` Robert A Duff
2007-07-30 15:48 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox