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,c3a7c1845ec5caf9 X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: Equality operator overloading in ADA 83 Date: 1997/05/07 Message-ID: #1/1 X-Deja-AN: 239879898 Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.camb.inmet.com References: Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1997-05-07T00:00:00+00:00 List-Id: Matthew Heaney (mheaney@ni.net) wrote: : ... : One thing he mentioned that didn't go in that probably should have (I think : that's what he said...) is : procedure P (O : access constant T); : I've actually had a use for this kind of thing. It would allow me to take : the 'Access of an tagged parameter of mode in: : procedure Q (O : in T) is : begin : P (O'Access); : ... : As it stands now I can't do that, because the object passed to "access T" : has to be mode in out. Bummer. You can declare a named access-to-constant type, and use that instead of an anonymous type. E.g.: type acc_to_con is access constant T; ... procedure P(O : acc_to_con); You will need to use 'Unchecked_Access to call it, though that is not exactly a huge crime in this case (IMHO). : -------------------------------------------------------------------- : Matthew Heaney : Software Development Consultant : : (818) 985-1271 -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Burlington, MA USA