Re: is there any way to get a list of classes that inherit a class?

2011-02-13 Thread Simen kjaeraas
hyp wrote: Hello, I know you can easily get the base class of some class in D. However is there any way to get a list of classes that inherit a given class? I was reading around the docs, but couldn't find anything :/. But maybe someone knows how to do it? This question is probably bett

Re: is there any way to get a list of classes that inherit a class?

2011-02-13 Thread hyp
On Sun, 13 Feb 2011 19:38:23 -, Kevin Bealer wrote: I don't know if you can find all of them easily but you can find the instantiated ones by adding a line to the Foo constructor as shown here. Two limits: 1. This doesn't report Bar itself since a Bar object is never created; howeve

Re: is there any way to get a list of classes that inherit a class?

2011-02-13 Thread Kevin Bealer
I don't know if you can find all of them easily but you can find the instantiated ones by adding a line to the Foo constructor as shown here. Two limits: 1. This doesn't report Bar itself since a Bar object is never created; however in a sense a 'Bar' object was created when Baz and Qux are cre

is there any way to get a list of classes that inherit a class?

2011-02-13 Thread hyp
Hello, I know you can easily get the base class of some class in D. However is there any way to get a list of classes that inherit a given class? I was reading around the docs, but couldn't find anything :/. But maybe someone knows how to do it?