develooper Front page | perl.perl6.language | Postings from August 2005

Re: Perl 6 Meta Object Protocols and $object.meta.isa(?)

Thread Previous | Thread Next
From:
Autrijus Tang
Date:
August 10, 2005 06:30
Subject:
Re: Perl 6 Meta Object Protocols and $object.meta.isa(?)
Message ID:
20050810133039.GA40615@aut.dyndns.org
On Wed, Aug 10, 2005 at 06:03:18AM -0600, Luke Palmer wrote:
> On 8/10/05, Autrijus Tang <autrijus@autrijus.org> wrote:
> > But it's an toplevel optimization, which is not applicable to
> > module authors.  So I'd very much welcome a lexical pragma that
> > forces static binding of subroutine calls.
> 
> Yeah, but the whole point of not allowing that is so that you can
> override modules when you need to.

No.  A lexical static binding pragma controls the function I _call_;
the outlawed "is final / is closed" is to control the functions
I _define_.

Also, runtime rebinding of the actual function I call is always
possible, provided that it's rebound to something of compatible type.

Thanks,
/Autrijus/


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About