comp.lang.ada
 help / color / mirror / Atom feed
From: John English <je@bton.ac.uk>
Subject: Re: Generics - Difference between ADA and Modula--3
Date: Wed, 07 Feb 2001 13:10:48 +0000
Date: 2001-02-07T13:10:24+00:00	[thread overview]
Message-ID: <3A814958.AE0E524C@bton.ac.uk> (raw)
In-Reply-To: slrn98049v.155.lutz@taranis.iks-jena.de

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
-----------------------------------------------------------------



  parent reply	other threads:[~2001-02-07 13:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-30  4:48 Generics - Difference between ADA and Modula--3 John Baltomoire
2001-01-30 16:04 ` Mark Carroll
2001-02-02 18:35   ` David Starner
2001-02-05 20:51     ` Mark Carroll
2001-02-05 21:46       ` David Starner
2001-02-06  0:36         ` Jeffrey Carter
2001-02-05 22:46       ` Pat Rogers
     [not found]       ` <95p1p7$3s9$1@nnrp1.deja.com>
     [not found]         ` <slrn98049v.155.lutz@taranis.iks-jena.de>
2001-02-07 13:10           ` John English [this message]
2001-02-12 20:38       ` Mark Carroll
2001-02-05 23:12     ` Mark Lundquist
2001-02-05 23:50       ` David Starner
2001-02-06  0:03       ` David Starner
     [not found] <mailman.981529807.716.comp.lang.ada@ada.eu.org>
2001-02-07 14:52 ` Ted Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox