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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,990196a3d5e5eb5e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-08 20:19:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!isdnet!enst!enst.fr!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: Child packages question Date: Mon, 08 Apr 2002 21:17:28 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1018322345 68008 137.194.161.2 (9 Apr 2002 03:19:05 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 9 Apr 2002 03:19:05 +0000 (UTC) Return-Path: X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19-4.3mdk i686) X-Accept-Language: en Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:22250 Date: 2002-04-08T21:17:28-05:00 Hi, ----------------------------------------------------- -- file1 : car.ads package Car is procedure Accelerate; end Car; ----------------------------------------------------- -- file2 : car.ads with Car.Engine; package body Car is procedure Accelerate is begin Car.Engine.Pump_More_Gas; end Accelerate; end Car; ----------------------------------------------------- -- file2 : car-engine.ads private package Car.Engine is procedure Pump_More_Gas; end Car.Engine; ----------------------------------------------------- -- file2 : car-engine.adb package body Car.Engine is procedure Pump_More_Gas is begin null; end Pump_More_Gas; end Car.Engine; ----------------------------------------------------- -- file2 : Mario_Andretti.adb with Car; --with Car.Engine; procedure Mario_Andretti is begin Car.Accelerate; -- Car.Engine.Accelerate; end Mario_Andretti; ----------------------------------------------------- Try uncommenting : "with Car.Engine" "Car.Engine.Accelerate" Compiler should complain :-) -- ------------------------------------- -- Merge vertically for real address ------------------------------------- s n p @ t . o k i e k c c m -------------------------------------