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,99ab4bb580fc34cd X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Q: access to subprogram Date: 1996/07/02 Message-ID: #1/1 X-Deja-AN: 163465894 references: <4rb9dp$qe6@news1.delphi.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-07-02T00:00:00+00:00 List-Id: "Note also that 'Unrestricted_Access on objects is even less safe -- it can produce a totally meaningless pointer from the start. I would much prefer if GNAT had separated these two things into two separate features." Now Bob, let's not get *too* carried away with worrying about the safety of this feature! 'Unrestricted_Access on an object is *exactly* equivalent to taking the 'Address of something and then unchecked_converting it to a pointer, something that was often done in Ada 83 days, but clearly Unrestricted_Access is preferable since at least it is typed. As to making two separate features, hmmmm ... after all 'Access itself in Ada really is used for two totally difference purposes, so the use of Unrestricted_Access for two similarly different purposes seemed quite consistent to me :-)