* Question on generic child packages
@ 1997-04-04 0:00 Jerry van Dijk
1997-04-04 0:00 ` Robert A Duff
0 siblings, 1 reply; 2+ messages in thread
From: Jerry van Dijk @ 1997-04-04 0:00 UTC (permalink / raw)
To my supprise GNAT seems to say that I cannot have private generic
child packages:
1 -- Demo.ads
2 package Demo is
3
4 end Demo;
1 -- Demo-Child.ads
2 generic
3 type Some_Type is private;
4 private package Demo.Child is
5
6 end Demo.Child;
GNAT/DOS 3.07 => demochil.ads:4:01: unexpected keyword "private" ignored
Either this cannot be done, the syntax is wrong or this is a plainly
stupid construction. However, I cannot find any reference to this in the
RM (or in [Cohen]). Can anyone point me in the right direction ?
-- Jerry van Dijk | Haarlem, Holland
-- Business Consultant | Team Ada
-- Ordina Finance | jdijk@acm.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question on generic child packages
1997-04-04 0:00 Question on generic child packages Jerry van Dijk
@ 1997-04-04 0:00 ` Robert A Duff
0 siblings, 0 replies; 2+ messages in thread
From: Robert A Duff @ 1997-04-04 0:00 UTC (permalink / raw)
In article <860128719.11snx@jvdsys.nextjk.stuyts.nl>,
Jerry van Dijk <jerry@jvdsys.nextjk.stuyts.nl> wrote:
>2 generic
>3 type Some_Type is private;
>4 private package Demo.Child is
>5
>6 end Demo.Child;
Try "private generic ... package Demo.Child is ...".
See RM-10.1.1(4), and follow the syntax rules from there.
- Bob
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-04-04 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-04 0:00 Question on generic child packages Jerry van Dijk
1997-04-04 0:00 ` Robert A Duff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox