core.reflect vs c++ reflection

Stefan Koch uplink.coder at googlemail.com
Tue Sep 28 11:46:39 UTC 2021


On Tuesday, 28 September 2021 at 07:10:43 UTC, WebFreak001 wrote:
>
> maybe for `nodeFromName("T")` leave it unsolved but there could 
> also be a `nodeFrom!T` which could additionally check for the 
> type of T and return the correct node type (like 
> EnumDeclaration from enums)
>
> This would additionally remove the need to do casts (and 
> potentially mess up)

I can provide a `NodeFromAlias`. But I don't want to promote such 
use.
I went through some of trouble to avoid static polymorphism.

I have to admit it is though it is tempting to chose the more 
convenient.
`node!bla` syntax.


More information about the Digitalmars-d mailing list