Re: Pre-PPC: class :abstract

[email protected] (Ovid)
Newsgroups perl.perl5.porters
Message-ID <CA+M4CHtwQ5DZh=Xp2n60ZHGLMdewjCkUL_cQTyR-i_gFUvKnwA@mail.gmail.com>
On Mon, Dec 22, 2025 at 5:34 PM Paul "LeoNerd" Evans <[email protected]>
wrote:

> 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.
>

Is that always true? https://metacpan.org/pod/sealed

I'm in no way able to judge whether or not this is viable. I'm just
wondering.

Best,
Ovid
-- 
https://curtispoe.org/
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.