On Tuesday, 22 May 2018 at 20:34:34 UTC, Ethan wrote:
        foreach( MemberName; __traits( allMembers, Parent ) )
        {
            if( MemberName == SymbolName )
            {
mixin( "alias ThisSymbol = Alias!( " ~ fullyQualifiedName!Parent ~ "." ~ SymbolName ~ " );" );
                return SymbolName != ThisSymbol.stringof;
            }
        }

Looking over it, I questioned why I was doing this loop. It should work just the same without the loop, although as far as error checking goes you'd want to do a __traits( compiles ) test on that alias mixin before going ahead and performing that code.

Reply via email to