comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: Workqueues in Ada
Date: Sun, 29 Jul 2007 06:30:54 GMT
Date: 2007-07-29T06:30:54+00:00	[thread overview]
Message-ID: <yuWqi.27366$Xa3.11000@attbi_s22> (raw)
In-Reply-To: <f8g8af$6fl$1@atlantis.news.tpi.pl>

Wiktor Moskwa wrote:
> 
> There is a little problem with using PragmAda components...
> It seems to be incompatible with Ada 2005, that my program uses.
> 
> 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
> =====

The PragmARCs are Ada 95. There are a number of functions that return 
record components of a generic formal limited private type. I think the 
thing to do for Ada 07 is change places where they have something like

return Node.Value;

to

return Result : Element do
    Assign (To => Result, From => Node.Value);
end return;

That introduces a copy that isn't necessarily required in Ada 95.

-- 
Jeff Carter
"C's solution to this [variable-sized array parameters] has real
problems, and people who are complaining about safety definitely
have a point."
Dennis Ritchie
25



  parent reply	other threads:[~2007-07-29  6:30 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
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 [this message]
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