On Tue, Jul 26, 2005 at 11:40:01PM +0100, Nicholas Clark wrote: > Would the core not being able to scan back past tie/overloading/magic/etc > be a bug that needs addressing?
I don't think so. Since the first thing that happens with tie, overload etc is that it calls a sub, there will always be a sub context at the base of the new context stack to be found. If it hasn't invoked a sub (eg PERLSI_MAGIC), then it's hardly likely to be able to execute pp_wantarray. Note that most context stack searching in Perl only searches the *current* context stack, eg looking for labels with next or goto: #!/usr/bin/perl sub TIEARRAY { goto FOO } my @a; tie @a, 'main'; FOO: $ perl587 /tmp/p Can't find label FOO at /tmp/p line 3. $ -- In my day, we used to edit the inodes by hand. With magnets.