From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!6MpDoNrA+2KoZyE4OD7oYg.user.46.165.242.75.POSTED!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Custom Storage Pool questions Date: Fri, 15 Oct 2021 01:08:54 -0700 Organization: Aioe.org NNTP Server Message-ID: <86v91ylnft.fsf@stephe-leake.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: gioia.aioe.org; logging-data="26831"; posting-host="6MpDoNrA+2KoZyE4OD7oYg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) Cancel-Lock: sha1:CCcsDDTLCy82MYOyFKNra1sb0Mc= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:63004 List-Id: "Randy Brukardt" writes: >> >> That is OK, but you still have to expand dispatching tables upon loading >> the library and shrink them upon unloading (though the latter is not >> supported, I guess). > > ??? The dispatching tables are defined statically by the compiler, and never > change. It would be nice if different variants of a dynamically loaded library could introduce different derived types; that would support a "plugin" model nicely. For example, suppose an editor defines a library interface for computing indent for various languages. Then one variant could provide Ada, another Pascal, etc. Each could be a derived type. I think you are saying this is simply not possible with Ada tagged types. -- -- Stephe