in reply to TrAdEz meets with God

Q: What is your current position on my $class=ref($self) || $self;

Q: What is your current position on type checking in subroutines? Ie, is ref($obj) eq 'TYPE' correct or not? What about Scalar::Util::reftype() and or UNIVERSAL::isa() or UNIVERSAL::can()?

Q: Is Inheritance really useful in perl or is containment an easier strategy?

Q: Do you think AUTOLOAD is a viable strategy for dynamic accessor generation in production enviornments?


---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi

    Flux8


Replies are listed 'Best First'.
Re^2: TrAdEz meets with God
by tradez (Pilgrim) on Oct 22, 2004 at 19:23 UTC
    Well real quick, AUTOLOAD is a brief section in his live presentation that you can view from typing perldoc perltoot and perltooc. The way he uses it, it definately enhances efficiency.


    Tradez
    "Every official that come in
    Cripples us leaves us maimed
    Silent and tamed
    And with our flesh and bones
    He builds his homes"

    - Zach de la Rocha
      If you're eventually going to install all of the autoloaded methods anyways, it is better to install all of them up front when you load your module (by assigning to the typeglob if need be) rather than lazily installing them later (throwing away the method cache every time you do it).

      Furthermore using AUTOLOAD does not play well with UNIVERSAL::can or multiple inheritance.