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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,555115ba813101ad X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: Finalization of package instance Date: 2000/01/18 Message-ID: <9l4h4.5569$Wn2.114954@newsread2.prod.itd.earthlink.net>#1/1 X-Deja-AN: 574380966 Content-transfer-encoding: 7bit References: <388496B3.7E36F781@earthlink.net> Content-Type: text/plain; charset="US-ASCII" X-ELN-Date: Tue Jan 18 12:49:09 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 948228549 38.26.192.7 (Tue, 18 Jan 2000 12:49:09 PST) Organization: EarthLink Network, Inc. Mime-version: 1.0 NNTP-Posting-Date: Tue, 18 Jan 2000 12:49:09 PST Newsgroups: comp.lang.ada Date: 2000-01-18T00:00:00+00:00 List-Id: In article <388496B3.7E36F781@earthlink.net> , Jeff Carter wrote: > 3. In the body of Datalink, declare a controlled type and an object of > that type; the Finalize for the type does the disconnect. This is the simplest of your solutions. > Datalink would > be generic, so each instance would have its own controlled object. This > can get you into trouble because a compiler may optimize away an unused > variable. I think there's a new rule (I don't know the AI) that says a Limited_Controlled object cannot be optimized away. This issue has come up on CLA before; visit DejaNews to find the thread. -- Philosophy may be ignored but not escaped; and those who most ignore least escape. David Hawkins