in reply to oo design q: SUPER::_init

After typing all that, I think my real question is: any reason not to put awaken() in the constructor?

AH

----------
Using perl 5.8.1-RC3 unless otherwise noted. Apache/1.3.33 (Darwin) unless otherwise noted. Mac OS X 10.3.9 unless otherwise noted.

Replies are listed 'Best First'.
Re^2: oo design q: SUPER::_init
by Tanktalus (Canon) on Feb 18, 2006 at 03:21 UTC

    From what I can see, no. No reason whatsoever. That's not to say that lestrrat's suggestion doesn't have some merit as well, although lestrrat is missing the SUPER:: in front of the embedded new, I believe:

    $class->SUPER::new(...);
    Personally, I'd do both. It allows the maximum in flexibility, while not really costing much.