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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2843c5eea3415584 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: APQ Date: Sat, 18 Dec 2004 17:13:26 +0100 Organization: cbb software GmbH Message-ID: <1j4g9e5qxbq9c$.1f0kfu03nv90x$.dlg@40tude.net> References: <2hju7i5ft73q$.x4md24pt913v.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net uRQF/SVb5+DCKJBM8mFk3gRJtCB3w94w++cji92pu0faJkPPY= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:7050 Date: 2004-12-18T17:13:26+01:00 List-Id: On Sat, 18 Dec 2004 10:20:25 +1100, Brian May wrote: >>>>>> "Dmitry" == Dmitry A Kazakov writes: > > Dmitry> Are you going to clone connections between different DBs? > Dmitry> The above looks like an attempt to emulate multiple > Dmitry> dispatch.! > > Dmitry> It should be: > > Dmitry> procedure Connect > Dmitry> ( C : in out Root_Connection_Type; > Dmitry> Same_As : Root_Connection_Type -- Same types required! > Dmitry> ) is abstract; > > I will look in more detail at the rest of what you have written > latter. I think your ideas are good. However, I think the above is > illegal, as Ada doesn't "know" what parameter to use for dispatching > to the correct routine. It is legal. You will have a run-time exception if the tags of actual parameters are different. In fact it is a limited form of multiple dispatch. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de