getting line number in templates

Daniel Ribeiro Maciel daniel.maciel at gmail.com
Mon Jul 23 21:47:27 PDT 2007


Hello!

I'm wondering if it's possible to design an exception class that would know in which line it ocurred. Without passing __LINE__ argument to it, obviosly.

Another thing I was wondering is if it would be possible for it to automatically know which function threw it, and through which functions it went. Does the new compile time reflection allows it?

Is that what's necessary to create a stack trace print with line numbers?

Cheers.



More information about the Digitalmars-d mailing list