www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Trait for listing symbols in a delegate's closure?

reply d coder <dlang.coder gmail.com> writes:
Greetings

I am wondering if there is a way to find out a tuple of all the
symbols/identifiers in a given delegates closure.

Regards
- Puneet
Apr 28 2013
parent "Dicebot" <m.strashun gmail.com> writes:
On Sunday, 28 April 2013 at 12:30:13 UTC, d coder wrote:
 Greetings

 I am wondering if there is a way to find out a tuple of all the
 symbols/identifiers in a given delegates closure.

 Regards
 - Puneet
I don't think it is possible. D does not have tools for introspection of function bodies, all traits are focused on declarations.
Apr 28 2013