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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,27dc164946031512 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Return-Path: Date: Thu, 18 Jan 2007 13:13:14 +0100 From: "Grein, Christoph (Fa. ESG)" Subject: AW: Limited_Controlled and constructor functions In-reply-to: To: comp.lang.ada@ada-france.org MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.5 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-class: urn:content-classes:message Thread-topic: Limited_Controlled and constructor functions Thread-index: Acc653wKvRak/PpeRAqYPj3OI7UP9wAElGdA X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 18 Jan 2007 12:16:28.0931 (UTC) FILETIME=[7B5D8530:01C73AFA] X-Virus-Scanned: amavisd-new at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 18 Jan 2007 13:20:02 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1169122802 news-2.free.fr 22098 88.191.14.223:42428 X-Complaints-To: abuse@proxad.net Path: g2news2.google.com!news3.google.com!news.glorb.com!news.ecp.fr!feed.ac-versailles.fr!proxad.net!cleanfeed3-a.proxad.net!nnrp2-2.free.fr!not-for-mail Xref: g2news2.google.com comp.lang.ada:8255 Date: 2007-01-18T13:20:02+01:00 > Now, I want to make it limited as well by adding limited before private > and changing Controlled to Limited_Controlled in two places. > I get this when compiling the package: > cannot return a local value by reference > "Program_Error" will be raised at run time I think the compiler is not yet full Ada 2005; this should work if I have understood the RM correctly.