Re: Check attribute against value

2021-04-02 Thread frame via Digitalmars-d-learn
On Saturday, 3 April 2021 at 04:03:14 UTC, rikki cattermole wrote: This doesn't explain it well, but you were adding types as attributes on to those symbols. Not struct instances. omg - that's dumb - I was thinking the compiler whould be aware of that. So, I need to check for isType! first,

Re: Check attribute against value

2021-04-02 Thread rikki cattermole via Digitalmars-d-learn
"Whether the attributes are values or types is up to the user, and whether later attributes accumulate or override earlier ones is also up to how the user interprets them." This doesn't explain it well, but you were adding types as attributes on to those symbols. Not struct instances.