regarding Class::Accessor::Faster

Discussion in 'Perl Misc' started by Rainer Weikusat, Apr 2, 2013.

  1. As far as I could determine, this

    is not only not concerned with data inheritance at all (eg, the first
    generated accessor for a package will always access array element #0,
    or, in other words, classes using this derived from classes also using
    this will stomp on the array slots of their parent classes) but - in
    addition - really badly or at least very 'unimaginatively' coded. Eg,
    created accessor methods are closures referencing a 'read-only' scalar
    variable when they could be compiled to access the slot whose number
    is stored in $n directly.
    Rainer Weikusat, Apr 2, 2013
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.