develooper Front page | perl.perl6.language | Postings from June 2001

Re: Per-object inheritance in core a red herring?

Thread Previous | Thread Next
Dan Brian
June 30, 2001 00:47
Re: Per-object inheritance in core a red herring?
Message ID:
> > Having it in the core, in C[++], would be that much more efficient,
> > and that much less of a hack.  Maybe the tradeoff is that it
> > wouldn't work.  :-)
> Everyone's making these assumptions, WHY WON'T ANYONE LOOK AT

It might not work, Schwern. And even if it did, it might be really slow.
Somebody should write an implementation first, and then tackle efficiency. 

Something like

  sub sub {
    my ($self, $method_name, $method ) = @_;
    *{ref($self).'::'.$method_name} = $method;

for adding object methods would be a good start. I think I'll call it 


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About