in reply to Re^3: caller() returns wrong line on multi-line function call
in thread caller() returns wrong line on multi-line function call

the one true line is by definition where a statement starts.

How can that possibly be right? By definition you don't have a call until the close bracket for the argument list because you don't have enough information to make the call until then!

Like I said already, good stories could be made for almost any line. :-)

Premature optimization is the root of all job security
  • Comment on Re^4: caller() returns wrong line on multi-line function call