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 From: Brian May Newsgroups: comp.lang.ada Subject: Re: APQ References: <2hju7i5ft73q$.x4md24pt913v.dlg@40tude.net> Date: Sat, 18 Dec 2004 10:20:25 +1100 Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:a6k/CGDgsnLBpQtvEg9r2wJjmqo= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: snoopy.microcomaustralia.com.au X-Trace: news.melbourne.pipenetworks.com 1103325600 202.173.153.89 (18 Dec 2004 09:20:00 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeed-east.nntpserver.com!nntpserver.com!news1.optus.net.au!optus!news.mel.connect.com.au!news-north.connect.com.au!news.alphalink.com.au!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:7039 Date: 2004-12-18T10:20:25+11:00 List-Id: >>>>> "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. The same thing, I believe applies to a function that takes Root_Connection_Type as a parameter and returns a Root_Connection_Type. -- Brian May