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=-0.8 required=5.0 tests=BAYES_00,INVALID_MSGID, SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b4f26c164c846938 X-Google-Attributes: gid103376,public From: Niklas Holsti Subject: Re: VIDEO MEMORY ACCESS WITH POINTERS Date: 1999/11/29 Message-ID: <3842F727.48B74003@icon.fi>#1/1 X-Deja-AN: 554572523 Content-Transfer-Encoding: 7bit References: <81p3sh$h2m$1@news.colba.net> <38409762.0@news.pacifier.com> <3841FA9B.31E9D1F4@callnetuk.com> Content-Type: text/plain; charset=us-ascii X-Trace: read2.inet.fi 943911101 194.252.1.67 (Mon, 29 Nov 1999 23:31:41 EET) Organization: Space Systems Finland Ltd MIME-Version: 1.0 NNTP-Posting-Date: Mon, 29 Nov 1999 23:31:41 EET Newsgroups: comp.lang.ada Date: 1999-11-29T00:00:00+00:00 List-Id: Nick Roberts wrote: [ snip ] > Strictly, this solution needs two extra declarations: > > for video_cell'Size use 16; > > for video_memory_type'Component_Size use 16; > > ... It may be more convenient to > declare the array as a two-dimensional array, but (interestingly) the > Ada standard provides no way to specify or interrogate whether an array > is stored in row-major or column-major order, so you can't do this if > you need portability. Well, it is perhaps perverse in this context, but you could ensure column-major order by pragma Convention (Fortran, TheArray); but even I wouldn't use the above for video memory access :-) Regards, Niklas Working at but not speaking for Space Systems Finland Ltd.