From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f37364fd74b84042,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 05 Apr 2008 08:52:52 -0500 From: "pakman" Newsgroups: comp.lang.ada Subject: Child Package Operator Visibility Date: Sat, 5 Apr 2008 10:03:27 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Message-ID: X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 24.147.76.98 X-Trace: sv3-5E4km0VYIFcWSgTgYajwu0f84O5q4MKcCP1U3gjhEQBpM/g94PtsSKm+FFup4vToHhRetgtYG3cRwU6!M+coTBHSaTbIPGhSkXCDyDEsCU1SERDIgWXPOW9sc+lH6SBzgD5E8oHIwrwcB2nWRiL1+A8btLb5!+uSc/tbi6SxZVqLAajp+UwdfqpwL X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.38 Xref: g2news1.google.com comp.lang.ada:20839 Date: 2008-04-05T10:03:27-04:00 List-Id: 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