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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,87077e61d6b3095b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-22 14:52:19 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: how do i implement double-dispatching? Date: 22 Dec 2003 17:49:41 -0500 Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1072133388 93981 80.67.180.195 (22 Dec 2003 22:49:48 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Mon, 22 Dec 2003 22:49:48 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: cl1motorsports Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:3718 Date: 2003-12-22T17:49:41-05:00 cl1motorsports writes: > Okay. now it works when the Visitor type, Visit() procedures and the > Accept_Visitor() procedure is in a separate package from the parse tree. > but when i try to combine the 2 into one package i get > an error about multiple dispatching on all of the Visit() procedures. > what is my scope issue with being in the same package that doesn't apply > to them being in 2 packages? In general, you will find that the Ada rules encourage putting things in different packages. This is a Good Thing :). Sometimes child packages work better. -- -- Stephe