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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3fc1c2283df835d5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-30 05:59:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: Limited_Controlled types as 'out' arguments Date: Wed, 30 Jul 2003 12:59:10 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <3f27bb70@baen1673807.greenlnk.net> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1059569950 12670 217.17.192.37 (30 Jul 2003 12:59:10 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Wed, 30 Jul 2003 12:59:10 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:41005 Date: 2003-07-30T12:59:10+00:00 List-Id: * Martin Dowie wrote: > "Lutz Donnerhacke" wrote in message >> procedure Copy(to : out Test; from : Test) is >> begin >> to.a := global; >> Put_Line("Copying " & from.a & " to " & to.a); >> global := Character'Succ(global); >> end Copy; > > Shouldn't this actually copy something out of 'from'? For examples you cut your real world problem until it's small. Yes, it's sufficent to call 'procedure example(a : out Test)'.