digitalmars.D.learn - Function information
- noteventime (3/3) Jun 23 2006 Hello,
- Frank Benoit (3/3) Jun 24 2006 I think, no.
- Lionello Lunesu (9/12) Jun 25 2006 Perhaps s/he means a stack trace? That's already possible in D, although...
Hello, Is there some way to access information about the current scope/function, EG. from where it was started?
Jun 23 2006
I think, no. This falls in the issue 'reflection' which is not supported with D. I hope it will come.
Jun 24 2006
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