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,5d708145f98f6273 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-14 05:07:38 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed.wirehub.nl!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: Access type conversions, how? Date: Wed, 14 Apr 2004 12:07:37 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <107mgcjspsour11@corp.supernews.com> <407c0f2c.0@entanet> <407d2686.0@entanet> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1081944457 21754 217.17.192.37 (14 Apr 2004 12:07:37 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Wed, 14 Apr 2004 12:07:37 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: archiver1.google.com comp.lang.ada:7086 Date: 2004-04-14T12:07:37+00:00 List-Id: * Luke Guest wrote: > "Lutz Donnerhacke" wrote in message >> Please use Address_To_Access_Conversion and map the adresses. > > Why? Is this a standard function? ARM95: 13.7.2 The Package System.Address_To_Access_Conversions >> Or (better) define a variable of the different type at the same location. > > I don't know what you mean here. Mapping two repesentation at the same memory location does not generate any code, but provide the required access. >> An example is available in my recent posting here on "Efficient Stream_IO" > > Well, I've just looked and I couldn't see any use of that function. There is no function. Only a variable of a different type mapped to the same location. You might use "pragma Union(Variable_Record);" on GNAT to get the same result.