comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: 'Digit in generic package
Date: 1996/08/28
Date: 1996-08-28T00:00:00+00:00	[thread overview]
Message-ID: <dewar.841212219@schonberg> (raw)
In-Reply-To: EACHUS.96Aug27134451@spectre.mitre.org


iRobert Eachs says

"   then Precision can be static in the instance even though it is not
static in the generic template.  This is exactly the behavior
commented on above.  And if an instance is such that some code can be
statically eliminated, most compilers will do so.  (There is at least
one compiler on the market which uses a generic model which prevents
this, but that is an accepted trade-off.  By not doing any generic
instantiations at compile time, the resulting code size is smaller.)
"

Whether a compiler can or cannot perform optimziations based on compile
time known constant values has nothing whatsoever to do with whether
these values are static. The set of static expressions changed in Ada 95,
the set of expressions whose value can be determined at compile time
did not change (except from the addition of new facilities), so I
find the discussion of staticness in instances to be completely 
irrelevant to this discussion.





      reply	other threads:[~1996-08-28  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-26  0:00 'Digit in generic package W. Wesley Groleau (Wes)
1996-08-27  0:00 ` Ken Garlington
1996-08-27  0:00 ` Robert I. Eachus
1996-08-28  0:00   ` Robert Dewar [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