comp.lang.ada
 help / color / mirror / Atom feed
From: dewarr@my-dejanews.com
Subject: Re: simple question - how to emulate void * ?
Date: 1998/11/06
Date: 1998-11-06T00:00:00+00:00	[thread overview]
Message-ID: <71usnd$v0c$1@nnrp1.dejanews.com> (raw)
In-Reply-To: m390hq3tdg.fsf@mheaney.ni.net

In article <m390hq3tdg.fsf@mheaney.ni.net>,
  Matthew Heaney <matthew_heaney@acm.org> wrote:
> dale@cs.rmit.edu.au (Dale Stanbrough) writes:
>
> >    type My_String is array (1..100_000) of Character;
> >             -- any length will do, just ensure it's
long enough for
> >             -- any problem you have to deal with.
> >
> >    type Ptr is access My_String;
>
>     for Ptr'Storage_Size use 0;


Note that the advice to use the representation clause is
only relevant if the type is declared locally,

By the way, we have found it useful to be a little
systematic with these bogus big array types, we call them
Big_ and define them, e.g.

  type Big_Int_Array is array (Natural) of Integer;

Of course you never want to allocate one of these :-)

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




      reply	other threads:[~1998-11-06  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-23  0:00 simple question - how to emulate void * ? Craig Allen
1998-10-23  0:00 ` Tom Moran
1998-10-23  0:00 ` Dale Stanbrough
1998-10-22  0:00   ` Hans Marqvardsen
1998-10-23  0:00     ` John McCabe
1998-10-23  0:00       ` dennison
1998-10-23  0:00       ` Ed Falis
1998-10-23  0:00         ` dennison
1998-10-24  0:00           ` Joe Wisniewski
1998-10-25  0:00           ` dewar
1998-10-24  0:00         ` Dale Stanbrough
1998-10-24  0:00           ` Robert A Duff
1998-10-24  0:00           ` Tucker Taft
1998-10-22  0:00   ` Hans Marqvardsen
1998-10-23  0:00   ` David C. Hoos, Sr.
1998-10-23  0:00   ` David C. Hoos, Sr.
1998-10-23  0:00 ` Jeff Carter
1998-10-24  0:00   ` Dale Stanbrough
1998-10-25  0:00     ` dewar
1998-11-05  0:00 ` Craig Allen
1998-11-06  0:00   ` Tom Moran
1998-11-06  0:00   ` Dale Stanbrough
1998-11-06  0:00     ` Matthew Heaney
1998-11-06  0:00       ` dewarr [this message]
replies disabled

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