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,2aed634b0d2edf21 X-Google-Attributes: gid103376,public From: "Michael Garrett" Subject: Re: Run Time Dispatch Question Date: 2000/02/26 Message-ID: <898md1$on2$1@ssauraab-i-1.production.compuserve.com>#1/1 X-Deja-AN: 590256593 References: <895q4e$5up$1@ssauraaa-i-1.production.compuserve.com> <38B6837E.7208F8C8@bton.ac.uk> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: newsmaster@compuserve.com X-Trace: ssauraab-i-1.production.compuserve.com 951573729 25314 216.192.165.27 (26 Feb 2000 14:02:09 GMT) Organization: CompuServe Interactive Services X-MSMail-Priority: Normal NNTP-Posting-Date: 26 Feb 2000 14:02:09 GMT Newsgroups: comp.lang.ada Date: 2000-02-26T14:02:09+00:00 List-Id: John English wrote in message news:38B6837E.7208F8C8@bton.ac.uk... > Michael Garrett wrote: > > I am having a problem understanding run time dispatching. ( Basic question I > > know, but I'm having a brain cramp. ) > > [...snip...] > > You need to put your tagged type t and primitive p in a package, not > a procedure. Otherwise, the procedure p(...) defined for each type > derived from t is just an overload of the name p, not a primitive of > the type. Dispatching only happens for primitives. To quote RM95 > 3.2.3: > > Thank You!! This clears up most of my confusion. " Build it, Then read the instructions". Michael