From: Mehdi Saada <00120260a@gmail.com>
Subject: Re: formal array types and default values
Date: Sat, 30 Dec 2017 15:59:04 -0800 (PST)
Date: 2017-12-30T15:59:04-08:00 [thread overview]
Message-ID: <ed567b45-a705-41c9-9df4-dfcc315a1132@googlegroups.com> (raw)
In-Reply-To: <faqhpnFljnfU1@mid.individual.net>
> If these types are generic formal types, I do not understand what
> you mean by "public".
Sorry. The array is a public (as opposed to "private" ?) type, T_DEGRE and ELEMENT are formal generic parameters.
> Some compilers will allocate the COEF component
> on the heap, according to the actual value of Degre, and then will not
> have this problem. However, GNAT uses the allocate-maximum-size method.)
I would have liked to have the choice, through, say, an aspect Dynamic_Bounds_Checking, or somethin'
> The remedy is to place som reasonable upper bound on the maximum
> possible value of Degre, by defining the type of Degree with a
> reasonable 'Last.
It was indeed done initially in the package, but I thought I was smarter and removed it. Wrong...
Thanks for your insight.
next prev parent reply other threads:[~2017-12-30 23:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-30 21:42 formal array types and default values Mehdi Saada
2017-12-30 22:20 ` Niklas Holsti
2017-12-30 23:59 ` Mehdi Saada [this message]
2018-01-03 0:52 ` Randy Brukardt
2018-01-03 8:33 ` Niklas Holsti
2018-01-03 20:53 ` Randy Brukardt
2018-01-06 0:10 ` Niklas Holsti
2018-01-08 21:12 ` Randy Brukardt
2017-12-31 12:34 ` Jeffrey R. Carter
2017-12-31 14:55 ` Mehdi Saada
2018-01-03 15:47 ` Mehdi Saada
2018-01-03 21:16 ` Randy Brukardt
2018-01-04 15:02 ` Mehdi Saada
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox