comp.lang.ada
 help / color / mirror / Atom feed
From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen)
Subject: RE: Variable length raw-byte data
Date: 13 Dec 2000 13:23:12 -0500
Date: 2000-12-13T13:23:12-05:00	[thread overview]
Message-ID: <8Mavy1o6gTqY@eisner.decus.org> (raw)
In-Reply-To: 9185vs$nh8$1@nnrp1.deja.com

In article <9185vs$nh8$1@nnrp1.deja.com>, Robert Dewar <robert_dewar@my-deja.com> writes:
> In article
> <B6A1A9B09E52D31183ED00A0C9E0888C469942@nctswashxchg.
> nctswash.navy.mil>,
> 
>> So you're going to allocate 2GB to handle what
>> might be only 10 bytes (or even 1K or 10K).  That
>> should work well on a dedicated processor with 64 K
>> of memory.
> 
> Well you sure missed the point here :-)
> 
> Of *course* you never allocate an instance of a
> big array. in fact it is not a bad idea to add
> 
>   for big_string_ptr'storage_Size use 0;
> 
> to emphasize this. The ONLY way you create instances
> of the pointer is by unchecked conversion.

That is an interesting trick.  Is it new for Ada 95 ?

Looking at the nearest (old) manual for VAX/DEC/Compaq Ada (83),
it says that if the value specified is zero the default value of
"no limit" will be used.  Of course that is in the blue type,
meaning a description specific to that compiler. Is their approach
now outlawed for Ada 95, or was it outlawed by an AI for Ada 83 ?



  reply	other threads:[~2000-12-13 18:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-13  2:56 Variable length raw-byte data Beard, Frank
2000-12-13 15:52 ` Robert Dewar
2000-12-13 18:23   ` Larry Kilgallen [this message]
2000-12-13 19:26     ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
2000-12-13 20:39 Beard, Frank
2000-12-14 13:30 ` Robert Dewar
2000-12-12 21:11 Beard, Frank
2000-12-12 21:00 Beard, Frank
2000-12-13 15:48 ` David Botton
2000-12-13 15:51   ` Lutz Donnerhacke
2000-12-13 19:34     ` Robert Dewar
2000-12-14  8:54       ` Lutz Donnerhacke
2000-12-13 23:10   ` Jeff Carter
2000-12-12  3:30 Beard, Frank
2000-12-12  5:54 ` tmoran
2000-12-11 19:38 Julian Morrison
2000-12-12  5:19 ` Jeff Carter
2000-12-13  0:50 ` Robert Dewar
2000-12-13  8:56   ` Tristan Gingold
replies disabled

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