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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,765548fafec25b6c X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Help - trying to understand dynamic dispatching Date: 1999/04/09 Message-ID: <7el5jj$kum$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 464444048 References: <923610308.5473.0.nnrp-09.c2de848f@news.demon.co.uk> X-Http-Proxy: 1.0 x1.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Apr 09 15:16:10 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-04-09T00:00:00+00:00 List-Id: In article <923610308.5473.0.nnrp-09.c2de848f@news.demon.co.uk>, "Steve Folly" wrote: > Help! I've been trying to understand how dynamic dispatching works in Ada95, > particularly the syntax required - ie. when and where you need the class > wide types. > > Unless someone wants to explain and perhaps give a concrete example in C++ > and it's equivalent Ada95 :-), a helpful push in the direction of a book, > paper or website describing such a beast would be most appreciated. Cohen's "Ada as a Second Language" (ISBN 0070116075) goes into this in some detail. I really didn't understand too well until I played with it myself though. It is correct that class wide types have to be involved either as a formal or actual parameter for dynamic dispatching to occur. ...unless there's some wrinkle I've missed. T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own