www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Function information

reply noteventime <noteventime_member pathlink.com> writes:
Hello,
Is there some way to access information about the current scope/function, EG. 
from where it was started?
Jun 23 2006
parent reply Frank Benoit <keinfarbton nospam.xyz> writes:
I think, no.
This falls in the issue 'reflection' which is not supported with D. I
hope it will come.
Jun 24 2006
parent Lionello Lunesu <lio lunesu.remove.com> writes:
Frank Benoit wrote:
 I think, no.
 This falls in the issue 'reflection' which is not supported with D. I
 hope it will come.
Perhaps s/he means a stack trace? That's already possible in D, although I don't know how. But there's some code somewhere that dumps a back trace inside Phobos' (unhandled-) exception handler. I've also been looking at the StackWalker project on CodeProject. It uses Windows' debug helper functions and chances are it works with DMD's debug info. I suppose that back trace patch for Phobos uses the same OS functions. L.
Jun 25 2006