comp.lang.ada
 help / color / mirror / Atom feed
* Diamond diagram for 'with'
@ 2018-02-21 16:20 Dmitry A. Kazakov
  2018-02-22  1:38 ` Randy Brukardt
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry A. Kazakov @ 2018-02-21 16:20 UTC (permalink / raw)


I would ask language lawyers regarding multiple with.

Consider this:

    limited with Root.A;
    package Root is
    end Root;

    package Root.A is
       type T is ...;
    end Root.A;

    with Root.A;
    package Root.B is
    end Root.B;

Now Root.B has both limited (inherited from Root) and full "with" of 
Root.A. So, may Root.B use Root.A.T? It cannot according to "limited 
with" and it can due to full "with". Which one to win?

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

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

end of thread, other threads:[~2018-02-22 23:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-21 16:20 Diamond diagram for 'with' Dmitry A. Kazakov
2018-02-22  1:38 ` Randy Brukardt
2018-02-22  8:33   ` Dmitry A. Kazakov
2018-02-22  9:27     ` J-P. Rosen
2018-02-22 23:29       ` Randy Brukardt
2018-02-22 10:53     ` briot.emmanuel

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