comp.lang.ada
 help / color / mirror / Atom feed
* parent package referring to child
@ 2007-10-10  6:23 eliben
  2007-10-10  9:07 ` Georg Bauhaus
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: eliben @ 2007-10-10  6:23 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="iso-8859-8-i", Size: 687 bytes --]

Hello,

I have a package FOO that encapsulates a large part of the system. Now
I need to add to it a public type (that should be visible by external
code) with a lot of enumerated names (hundreds). I don't want to fill
the spec of FOO with this huge type, so I thought it would be a good
idea to create a subpackage: FOO.Names, and place the type there.

However, declarations of subprograms in the spec of FOO must refer to
the names from FOO.Names, and Ada 95 won't let me do that because it's
parent referring to child.

Is there any way to overcome this problem ? Perhaps a different design
that suits the requirement and doesn't go against the Ada standard ?

Thanks in advance.




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

end of thread, other threads:[~2007-10-19 12:45 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-10  6:23 parent package referring to child eliben
2007-10-10  9:07 ` Georg Bauhaus
2007-10-10  9:24   ` eliben
2007-10-10 14:46     ` Adam Beneschan
2007-10-10 19:26   ` Simon Wright
2007-10-10 14:59 ` Matthew Heaney
2007-10-10 18:54   ` Vadim Godunko
2007-10-10 19:32     ` Matthew Heaney
2007-10-10 20:20       ` Adam Beneschan
2007-10-11  4:12         ` Randy Brukardt
2007-10-11 15:21           ` Adam Beneschan
2007-10-19 12:45           ` Vadim Godunko
2007-10-10 19:51   ` Matthew Heaney
2007-10-10 17:06 ` Jeffrey R. Carter
2007-10-10 19:17 ` anon
2007-10-11  9:45 ` george
2007-10-12  4:15   ` Jeffrey R. Carter
2007-10-12  9:51     ` Georg Bauhaus

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