Brundiez wrote:
Now what I want to know from you guys is, whether this is going to be a performance hit if I implement it in production. I think _no_big_deal_ but what is your opinion?
My understanding is that there are quite large overheads in doing a throw / catch. Also, what happens afterwards? Does the code keep running, or do you inform the user? Either way, I reckon it is no big deal. Especially when you include the time taken to actually deal with the line number information. The cost of storing the line number in a global variable is nothing in comparison. But I've just noticed that you say:
Brundiez wrote:
Before compiling the code write a script that will insert this statement after every line of code
*Every* line of code? Do you *really* need to know so precisely? Shraddhan