Re: RFC 189 (v1) Objects : Hierarchical calls to initializers anddestructors
[email protected] (Damian Conway) Sun, 3 Sep 2000 11:46:12 +1100 (EST)
| Newsgroups | perl.perl6.language.objects |
|---|---|
| Message-ID | <[email protected]> |
> The "multiple inheritance paths" one is good. I like that part a lot. > But the rest makes me really nervous if there's no way to override or > change it. There is. I'll try and get the C<use delegation> RFC out today. > One thing nobody's brought up is this: What if you decide you want the > standard Perl 5 bless behavior, and you want to tweak the order of > calls. So, you don't define a SETUP. BUT, the author of a module you're > inheriting from defined a SETUP, not to your knowledge? This gets called > automatically by bless(), with no way to override it, either making you > manually undo it all or decide not to subclass it anymore. This is bad. Delegation support will make "not subclassing" it trivial. Damian