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,ce667ecdc314f22 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-09 09:02:59 PST Newsgroups: comp.lang.ada Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!news.tufts.edu!uunet!dca.uu.net!ash.uu.net!world!bobduff From: Robert A Duff Subject: Re: Using COM Interfaces (was: Releasing Aliased Variables) Sender: bobduff@world.std.com (Robert A Duff) Message-ID: Date: Fri, 9 Mar 2001 17:01:26 GMT References: <3AA692A8.F1283C27@netscape.net> <87bsrcs8a3.fsf@deneb.enyo.de> <3AA8F1FA.EEEC73D1@netscape.net> Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: supernews.google.com comp.lang.ada:5574 Date: 2001-03-09T17:01:26+00:00 List-Id: Byron Kauffman writes: > On the other hand, some of the methods defined for the DS objects pass > pointers to pointers. Would it be a good idea to alias them? I don't know the answer to your main question, but I can tell you the Ada rule: if you want to say X'Access, then you must declare X to be aliased. If you want to say X'Address, then you *should* declare X to be aliased. It is irrelevant whether or not X is itself also a pointer. X'Unchecked_Access is like X'Access, except it allows the creation of dangling pointers. If you do not want to use any of these three attributes on X, then you should not declare X to be aliased. - Bob