On Tue, Nov 05, 2002 at 06:53:38PM -0000, Soren A wrote:
> Why is the list of parameters being passed to _pm_to_blib_flush()
> with "$self" as the first argument?

The original patch for _pm_to_blib_flush() is very odd.
http://public.activestate.com/cgi-bin/perlbrowse?patch=13251&action=patch

_pm_to_blib_flush() was declared inside pm_to_blib().  It looks like so it
can share some lexical variables between each other rather than having to
pass them as parameters.  Probably a micro-optimization.

Given that, the decision to use a function rather than method call was
probably also a micro-optimization since people seem to think method calls
are slower (they are, but not enough to be worry about).

So there's no reason it shouldn't be a method call, and now it is.


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
I'm going to have to hurt you on principle.

Reply via email to