[svn:PHP-Sandwich] rev 1035 - PHP-Sandwich/trunk/PHP
[email protected] 29 Apr 2005 02:11:39 -0000
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
Author: gschlossnagle Date: Thu Apr 28 19:11:38 2005 New Revision: 1035 Modified: PHP-Sandwich/trunk/PHP/Class.pm Log: use goto instead of direct call. Modified: PHP-Sandwich/trunk/PHP/Class.pm ============================================================================== --- PHP-Sandwich/trunk/PHP/Class.pm (original) +++ PHP-Sandwich/trunk/PHP/Class.pm Thu Apr 28 19:11:38 2005 @@ -8,7 +8,9 @@ my $self = shift; my $sub = $AUTOLOAD; (my $method = $sub) =~ s/.*:://; - $self->_AUTOLOAD($method, @_); + unshift @_, $method; + unshift @_, $self; + goto &_AUTOLOAD; } 1;