<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It looks like the runtime _does_ give you this capability (as Adam explains in<br>
his reponse), so I stand corrected on that point. But a compile time solution<br>
is still impossible due to D's compilation model.</blockquote><div><br></div><div>A possible, partial solution is to get a module members at compile-time and iterate on them to see if they are subclasses of A. That's partial for the reasons you cited, but that might be enough for the OP.</div>
<div><br></div><div>I don't remember: is there a way to get all visible symbols in the current scope?</div></div>