Getting All Instantiations of a Template

2009-10-24 Thread dsimcha
Is there currently a way in D2 to get the parameters of all instantiations of a template in a given scope? For example: class Foo { template instantiateMe(T) { void instantiateMe(T arg) {} } void foo() { int i; instantiateMe(i); } void bar() {

Re: Getting All Instantiations of a Template

2009-10-24 Thread Walter Bright
dsimcha wrote: Is there currently a way in D2 to get the parameters of all instantiations of a template in a given scope? Templates are instantiated lazily, meaning it doesn't make much sense to figure this out at compile time.