comp.lang.ada
 help / color / mirror / Atom feed
* Compiler incompatability #2
@ 1999-05-19  0:00 dennison
  0 siblings, 0 replies; only message in thread
From: dennison @ 1999-05-19  0:00 UTC (permalink / raw)


I have just come across another incompatability between Gnat and
ObjectAda. This one has to do with generic package instantiations.

It seems that objects within an instantiation of a generic package in
the spec of a package are visable to other packages under ObjectAda
meerly by with'ing the enclosing package. However, Gnat doesn't give
visibility to such objects unless the generic instantiation is also
with'ed. Does anyone know which is right? I hope this isn't a grey area
in the language.

Example:

package A is
   package B is new B_Generic (...


with A;
with A.B;  -- Gnat requires this line, ObjectAda doesn't

package body C is
   ...
      return A.B.Object;
   ...

--
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] only message in thread

only message in thread, other threads:[~1999-05-19  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-19  0:00 Compiler incompatability #2 dennison

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