Re: Derived classes? Reflection

2019-03-29 Thread Alex via Digitalmars-d-learn
On Saturday, 13 April 2013 at 17:50:00 UTC, Tofu Ninja wrote: On Saturday, 13 April 2013 at 17:45:12 UTC, Tofu Ninja wrote: Maybe this is helpfully: http://forum.dlang.org/thread/scgjnudclnwlbdqqd...@forum.dlang.org Oddly enough, I found that at about the same time you posted it. Sadly this

Re: Derived classes? Reflection

2013-04-14 Thread Benjamin Thaut
Am 13.04.2013 19:49, schrieb Tofu Ninja: On Saturday, 13 April 2013 at 17:45:12 UTC, Tofu Ninja wrote: Maybe this is helpfully: http://forum.dlang.org/thread/scgjnudclnwlbdqqd...@forum.dlang.org Oddly enough, I found that at about the same time you posted it. Sadly this does not provide a co

Re: Derived classes? Reflection

2013-04-13 Thread Tofu Ninja
On Saturday, 13 April 2013 at 17:45:12 UTC, Tofu Ninja wrote: Maybe this is helpfully: http://forum.dlang.org/thread/scgjnudclnwlbdqqd...@forum.dlang.org Oddly enough, I found that at about the same time you posted it. Sadly this does not provide a compile time solution, only runtime.

Re: Derived classes? Reflection

2013-04-13 Thread Tofu Ninja
Maybe this is helpfully: http://forum.dlang.org/thread/scgjnudclnwlbdqqd...@forum.dlang.org Oddly enough, I found that at about the same time you posted it.

Re: Derived classes? Reflection

2013-04-13 Thread Namespace
On Saturday, 13 April 2013 at 16:16:03 UTC, Tofu Ninja wrote: Currently is there a way to get all of the subclasses of a class at compile time? It seems like something that should be possible using traits but I can't seems to see how. Something like class A{...} class B:A{...} class C:A{...}

Re: Derived classes? Reflection

2013-04-13 Thread Andrej Mitrovic
On 4/13/13, Tofu Ninja wrote: > Currently is there a way to get all of the subclasses of a class > at compile time? There might be things like using .moduleinfo and traversing imports to find all classes, but I think separate compilation makes this unreliable. There is however BaseClassTuple in

Derived classes? Reflection

2013-04-13 Thread Tofu Ninja
Currently is there a way to get all of the subclasses of a class at compile time? It seems like something that should be possible using traits but I can't seems to see how. Something like class A{...} class B:A{...} class C:A{...} ... foreach(auto t ; getsubclass(A)) { ... } Any help wou