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,f6b6181765c24743 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-07 05:41:56 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!nerim.net!teaser.fr!fr.clara.net!heighliner.fr.clara.net!grolier!btnet-peer0!btnet-peer!btnet!news2.vas-net.net!server2.netnews.ja.net!newshost.central.susx.ac.uk!news.bton.ac.uk!not-for-mail From: John English Newsgroups: comp.lang.ada Subject: Re: Generics - Difference between ADA and Modula--3 Date: Wed, 07 Feb 2001 13:10:48 +0000 Organization: University of Brighton Message-ID: <3A814958.AE0E524C@bton.ac.uk> References: <3a7646fb$1@rsl2.rslnet.net> <956ols$qtv$1@news.cis.ohio-state.edu> <95eumd$8i41@news.cis.okstate.edu> <95n3oi$5nh$1@news.cis.ohio-state.edu> <95p1p7$3s9$1@nnrp1.deja.com> NNTP-Posting-Host: straumli.it.bton.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: saturn.bton.ac.uk 981551424 27682 193.62.183.204 (7 Feb 2001 13:10:24 GMT) X-Complaints-To: news@bton.ac.uk NNTP-Posting-Date: 7 Feb 2001 13:10:24 GMT X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:4925 Date: 2001-02-07T13:10:24+00:00 List-Id: Lutz Donnerhacke wrote: > These days I heavily use pointers in native Ada, because I have a fixed > Storage_Array which needs to be reinterpreted by different record types. Why not try something like this: X : array (1..Zillions) of Byte; Y : Magic_Record; for Y'Address use X'Address; -- remember about alignment, too! ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------