From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,92a027c293f03acb X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Workqueues in Ada References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1185690654 12.201.97.213 (Sun, 29 Jul 2007 06:30:54 GMT) NNTP-Posting-Date: Sun, 29 Jul 2007 06:30:54 GMT Organization: AT&T ASP.att.net Date: Sun, 29 Jul 2007 06:30:54 GMT Xref: g2news2.google.com comp.lang.ada:1255 Date: 2007-07-29T06:30:54+00:00 List-Id: 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