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
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
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.
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.
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{...}
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
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