From: Geoff Youngs Date: 2003-08-01T17:44:39+09:00 Subject: Re: debugprint On Fri, Aug 01, 2003 at 02:10:12PM +0900, Ben Giddings wrote: > On Friday, August 1, 2003, at 12:41 AM, John W. Long wrote: > > filename = __FILE__ line = __LINE__ > > Yeah, only unless it's in a macro, those will always give the file and > line of "fancydebugprint", where the method is defined, right? I want > the ones one stack level up -- something that's easy with a macro but > I'm not sure how to do it here. caller(1).first - although it will return a string, so that may need some interpretation, or if it is only for debuging, it might just do. TTFN, Geoff.