Adam Heath wrote:
Adrian Crum wrote:
Hmm... let's say the simple method operations all kept line numbers in them. 
The exec method could catch all Exceptions, wrap the original Exception with a 
MiniLangException - which would also accept the method name and line number - 
and then throw the MiniLangException. You could still get a stack trace from 
that, right?

That would mean 2 ints or longs per object.  Not to mention that each
node also has 2 Integers.

I think we should maybe have a combination of both.  Seeing these
things in the stack trace is extremely useful.  You can see the path
the call stack has taken, in addition to the final exception having
embedded position information.

We could keep the object size small by having only a line number for each operation. The information won't be as detailed as what you have in webslinger, but at least it would be better than no line number at all.

-Adrian

Reply via email to