comp.lang.ada
 help / color / mirror / Atom feed
* Re: Records and their types.
       [not found]           ` <7s93ih$4vj$1@nnrp1.deja.com>
@ 1999-09-22  0:00             ` Ted Dennison
  1999-09-22  0:00               ` Robert Dewar
  0 siblings, 1 reply; 2+ messages in thread
From: Ted Dennison @ 1999-09-22  0:00 UTC (permalink / raw)


In article <7s93ih$4vj$1@nnrp1.deja.com>,
  Robert Dewar <robert_dewar@my-deja.com> wrote:

> > required size is. (Like I said, the DEC compiler used to
> accept this and work
> > fine with it while others complained.)
>
> It will work fine, but in this case, there is no need to provide
> a default. DEC always allocated the maximum value for
> unconstrained variant records. Perhaps it did not give a
> warning, but it should have :-)

It was a long time ago, but the way I remember it the DEC compiler would
do as Robert says, but it would also try to run with it. That lead to
rather inefficent code, but hey, you're the programmer. If you want the
ability to expand your array field to 2*31 elements, that's what you
get.


--
T.E.D.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Records and their types.
  1999-09-22  0:00             ` Records and their types Ted Dennison
@ 1999-09-22  0:00               ` Robert Dewar
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Dewar @ 1999-09-22  0:00 UTC (permalink / raw)


In article <7satv9$ehj$1@nnrp1.deja.com>,
  Ted Dennison <dennison@telepath.com> wrote:
> It was a long time ago, but the way I remember it the DEC
compiler would
> do as Robert says, but it would also try to run with it. That
lead to
> rather inefficent code, but hey, you're the programmer. If you
want the
> ability to expand your array field to 2*31 elements, that's
what you
> get.


We are not talking about "expanding your array field to ...",
we are talking about the default allocation of 2**31 elements.
Of course GNAT will "try to run with it", but you will, as the
warning told you, get a Storage_Error.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-09-22  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <37E48A92.B2CB3EC5@interact.net.au>
     [not found] ` <37e4c6f9@news1.prserv.net>
     [not found]   ` <37E64425.A5446224@pwfl.com>
     [not found]     ` <slrn7ucouj.ijj.gisle@kondor.ii.uib.no>
     [not found]       ` <wccogexpiky.fsf@world.std.com>
     [not found]         ` <37E6972C.9D3271A2@pwfl.com>
     [not found]           ` <7s93ih$4vj$1@nnrp1.deja.com>
1999-09-22  0:00             ` Records and their types Ted Dennison
1999-09-22  0:00               ` Robert Dewar

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