Thread OOP $self (11 answers)
Opened by KurtZ at 2008-04-30 18:42

KurtZ
 2008-05-01 01:34
#109060 #109060
User since
2007-12-13
411 Artikel
BenutzerIn
[default_avatar]
Quote
Furthermore, when called from within the DB package, caller returns more detailed information:
it sets the list variable @DB::args to be the arguments with which the subroutine was invoked.
-f caller

_args muss die Argumente aus dem Call zwei 2 Level zuvor holen, scheinbar treten Fälle dazwischengeschobener anonymer Frames auf, deswegen wird solange zurückgegangen bis $c[3](=$subroutine) entweder definiert oder evalcode ist.


Also für meinen Geschmack zuviel Overhead für jeden Methodenaufruf, nur um ($self,@args)=@_ einzusparen...
TMTOWTDYOG (there's more than one way to dig your own grave)

View full thread OOP $self