comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@acm.org>
To: cl1motorsports <cwlambert76@yahoo.com>
Cc: comp.lang.ada@ada-france.org
Subject: Re: how do i implement double-dispatching?
Date: 22 Dec 2003 17:49:41 -0500
Date: 2003-12-22T17:49:41-05:00	[thread overview]
Message-ID: <mailman.160.1072133388.31149.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <pan.2003.12.22.21.41.43.388128@yahoo.com>

cl1motorsports <cwlambert76@yahoo.com> 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




  parent reply	other threads:[~2003-12-22 22:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-17 18:08 how do i implement double-dispatching? cl1motorsports
2003-12-18  2:17 ` Stephen Leake
2003-12-18  9:48 ` Dmitry A. Kazakov
2003-12-18 15:13 ` Martin Krischik
2003-12-20  6:27 ` cl1motorsports
2003-12-20  9:56   ` Martin Krischik
2003-12-20 17:00     ` cl1motorsports
2003-12-21 13:39       ` Stephen Leake
2003-12-21 17:40         ` cl1motorsports
2003-12-22 22:47           ` Stephen Leake
2003-12-22 21:41   ` cl1motorsports
2003-12-22 21:47     ` cl1motorsports
2003-12-23 11:03       ` Dmitry A. Kazakov
2003-12-22 22:49     ` Stephen Leake [this message]
2003-12-22 23:04       ` cl1motorsports
replies disabled

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