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,9cff4fb5d12e1f68 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!k30g2000hse.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Primitive curiosity... Date: Wed, 24 Sep 2008 07:02:05 -0700 (PDT) Organization: http://groups.google.com Message-ID: <48fbafe4-e95f-4fc1-bf15-9c3f031fb7fe@k30g2000hse.googlegroups.com> References: <447b8b2a-b7bb-4ff5-89bf-a6b7eecc054e@a70g2000hsh.googlegroups.com> NNTP-Posting-Host: 20.133.0.8 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1222264925 4987 127.0.0.1 (24 Sep 2008 14:02:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 24 Sep 2008 14:02:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k30g2000hse.googlegroups.com; posting-host=20.133.0.8; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7808 Date: 2008-09-24T07:02:05-07:00 List-Id: On 17 Sep, 22:19, Adam Beneschan wrote: [snip] > For a tagged type, the things that need to be determined before it's > frozen include something sometimes called the "dispatch vector" or > "dispatch table" or something like that. =A0It's basically a table that > contains the addresses of the primitive subprograms of the type. =A0Type > extensions that may override those subprograms will have their own > array with the primitive subprograms in the same slots in the array. > Then, when you do a dispatching operation, the code generated by the > compiler will just look in that slot in the array to see what > procedure to execute. =A0That's how polymorphism takes place. Those from a C++ background may think this sounds like a "vtable"...