Re: Pre-PPC: class :abstract

[email protected] ("Paul \"LeoNerd\" Evans")
Newsgroups perl.perl5.porters
Message-ID <[email protected]>
On Fri, 19 Dec 2025 11:59:26 +0100
Ovid <[email protected]> wrote:

> Final classes can be interesting. In some languages, you no longer
> have to use a vtable to lookup methods, meaning you get a nice
> performance boost.

That whole area relies on the fact that variables holding references to
final class instances are annotated with that class information, so
static method resolution can be made at compiletime rather than runtime.

In dynamic languages like Perl where there are no such annotations on
variables or other expressions, there's nothing you can use for that
kind of lookup, so it's just done at runtime.

-- 
Paul "LeoNerd" Evans

[email protected]
http://www.leonerd.org.uk/  |  https://metacpan.org/author/PEVANS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.