in reply to Re: Sub calling sadness
in thread Sub calling sadness
This will call ThatPackage::blah with first argument of $baz using object dispatching
"Object dispatching?" No, ThatPackage::blah $foo is not an indirect method call if ThatPackage::blah has been declared as a sub. It's a simple function call.
If sub blah didn't exist in ThatPackage, then it would be an indirect method call, but $baz would be used as the class name, not as an argument.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sub calling sadness
by pc88mxer (Vicar) on Mar 08, 2008 at 07:27 UTC | |
by ikegami (Patriarch) on Mar 08, 2008 at 17:35 UTC |