Get constructor for a class

Gary Willoughby dev at nomad.so
Fri Sep 13 06:16:10 PDT 2013


On Friday, 13 September 2013 at 09:12:53 UTC, simendsjo wrote:
> allMembers returns "this", but trying to get "this" or "__ctor" 
> using getMember fails. Is there any way to get this method?

foreach (func; __traits(getOverloads, T, "__ctor"))
{
	...
}


More information about the Digitalmars-d-learn mailing list