in reply to Re: OO-call bug uncovered & autovivified functions: defined? exists?
in thread OO-call bug uncovered & autovivified functions: defined? exists?
If you remove this behavior then it will be required that all subroutines be defined before ever being referred to.
Could you please substantiate this? I don't see why the autovivifying behaviour of \&foo is required to call functions not yet defined. In fact, the doesn't seem to be any such need currently.
>perl -e"print exists(&foo)?1:0; exit; foo();" 0
It's perfectly fine behaviour for sub foo; to create a stub, but that's an unrelated matter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: OO-call bug uncovered & autovivified functions: defined? exists?
by Somni (Friar) on Oct 29, 2007 at 01:20 UTC | |
by ikegami (Patriarch) on Oct 29, 2007 at 01:46 UTC | |
by tye (Sage) on Oct 29, 2007 at 02:03 UTC | |
by ikegami (Patriarch) on Oct 29, 2007 at 02:15 UTC | |
by Somni (Friar) on Oct 29, 2007 at 02:08 UTC | |
by ikegami (Patriarch) on Oct 29, 2007 at 02:09 UTC | |
by Somni (Friar) on Oct 29, 2007 at 02:38 UTC |