how to test if member of instance exists/defined?

crimaniak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 22 13:53:17 PDT 2017


On Wednesday, 22 March 2017 at 20:35:27 UTC, StarGrazer wrote:
> I've tried compiles but I guess that only checks if the code 
> has valid syntax, not if it actually will compile in context.

https://dlang.org/spec/traits.html#hasMember


More information about the Digitalmars-d-learn mailing list