Re: RFC 189 (v1) Objects : Hierarchical calls to initializers anddestructors

[email protected] (Damian Conway) Sat, 2 Sep 2000 11:20:03 +1100 (EST)
Newsgroups perl.perl6.language.objects
Message-ID <[email protected]>
   > What if you want to bless something but not call all its cascading
   > SETUPs?

Then don't *define* cascading SETUPS in the first place. :-)

C<bless> still would have the existing Perl 5 behaviour. Things 
only change if you add these new-mangled SETUP methods.

The point of welding SETUP calls to C<bless> is that it gives the class
designer a way of guaranteeing that you can't create an object (i.e. bless
it) without invoking the initialization. In fact, you don't even have to
be *aware* that a base class has setup behaviour - it just happens 
automagically when you bless your derived object.

That's a Good Thing, IMO.

Damian