comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Compiler incompatability #2
Date: 1999/05/19
Date: 1999-05-19T00:00:00+00:00	[thread overview]
Message-ID: <7hv5bo$i73$1@nnrp1.deja.com> (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.---




                 reply	other threads:[~1999-05-19  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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