On Tue, Jul 26, 2005 at 11:27:05PM +0100, Dave Mitchell wrote:

> A quick look at the src shows that it scans back through the current
> context stack for an eval, sub or format. From this perspective, a require
> or do "file" is an eval. If it it fails to find one, it returns undef. It
> doesn't scan previous context stacks, so it wont backtrack through magic,
> tie, overload etc.

Oh. Interesting. I had a chat with Robin Houston (author of Want) about
this. Robin says that Want can't scan back past a tie, because the
information it would need is in a local variable in a C function.
(He was telling me this. I think he told me which function, but it wasn't
all sinking in, as things have been a bit
http://www.flickr.com/photos/twoshortplanks/28698637/
recently *)

Would the core not being able to scan back past tie/overloading/magic/etc
be a bug that needs addressing?

Nicholas Clark

*  to avoid confusion I should clarify that that photo was from the meeting
   on Monday. I was talking with Robin at the meeting on Thursday.
** to avoid distress I should clarify further that neither copenhagen.pm nor
   the state of the glass have anything to do with the aaaaaargh. Nor does
   any open source code. We know where the code in question lives, and its
   days are numbered. :-)

Reply via email to