comp.lang.ada
 help / color / mirror / Atom feed
* Child Package Operator Visibility
@ 2008-04-05 14:03 pakman
  2008-04-05 14:19 ` (see below)
  0 siblings, 1 reply; 7+ messages in thread
From: pakman @ 2008-04-05 14:03 UTC (permalink / raw)


Recently, in the process of illustrating Ada 95 child packages in a course I 
teach, I implemented the Fractions.Comparisons package from N. Cohen's Ada 
as a Second Language, 2nd ed text. In the test program, I withed the 
Fractions and Fractions.Comparisons packages, and then specified the use 
type Fractions.Fraction_Type for direct visibility of the Fractions package 
operators. I was surprised that the Fractions.Comparisons package operators 
were not directly visible (that is, I was not able to test for A < B). To 
make the example work, I added the use Fractions.Comparisons statement.

So, my questions are: 1) Why didn't the use type work for the 
Fractions.Comparisons operators, and 2) how do I make the operators directly 
visible?

While this is an academic exercise, actual projects using this combination 
of parent and child packages have experienced similar problems.

Thanks,
John Cupak 





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

end of thread, other threads:[~2008-04-14  7:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-05 14:03 Child Package Operator Visibility pakman
2008-04-05 14:19 ` (see below)
2008-04-07 15:03   ` Adam Beneschan
2008-04-07 15:25     ` Anh Vo
2008-04-07 17:30     ` (see below)
2008-04-13 20:16     ` Robert A Duff
2008-04-14  7:42       ` Jean-Pierre Rosen

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