Thread overview | |||||
---|---|---|---|---|---|
|
June 23, 2006 Function information | ||||
---|---|---|---|---|
| ||||
Hello, Is there some way to access information about the current scope/function, EG. from where it was started? |
June 24, 2006 Re: Function information | ||||
---|---|---|---|---|
| ||||
Posted in reply to noteventime | I think, no. This falls in the issue 'reflection' which is not supported with D. I hope it will come. |
June 26, 2006 Re: Function information | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | 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.
|
Copyright © 1999-2021 by the D Language Foundation