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:
--20cf301e2e45eff48a04db6aec9e
Content-Type: text/plain; charset=ISO-8859-1

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

--20cf301e2e45eff48a04db6aec9e
Content-Type: text/html; charset=ISO-8859-1

<div dir="ltr"><div style>Greetings</div><div style><br></div><div style>I am
wondering if there is a way to find out a tuple of all the symbols/identifiers
in a given delegates closure.</div><div style><br></div><div style>

Regards</div><div style>- Puneet</div></div>

--20cf301e2e45eff48a04db6aec9e--
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