Thread overview
Function information
Jun 23, 2006
noteventime
Jun 24, 2006
Frank Benoit
Jun 26, 2006
Lionello Lunesu
June 23, 2006
Hello,
Is there some way to access information about the current scope/function, EG.
from where it was started?


June 24, 2006
I think, no.
This falls in the issue 'reflection' which is not supported with D. I
hope it will come.
June 26, 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.