Re: [UDA] Error: first argument is not a symbol

2016-09-15 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, September 15, 2016 08:56:18 Steven Schveighoffer via Digitalmars- d-learn wrote: > On 9/15/16 4:48 AM, drug wrote: > > https://dpaste.dzfl.pl/9548c481ce46 > > > > shouldn't commented line return 'false' as built-in type 'int' has no > > any UDAs instead of cryptic (for me) message

Re: [UDA] Error: first argument is not a symbol

2016-09-15 Thread drug via Digitalmars-d-learn
15.09.2016 15:56, Steven Schveighoffer пишет: This is due to int not being a symbol, which apparently __traits(getAttributes, ...) requires. int is a keyword and not considered a symbol. An annoying distinction without a difference in this case. I'd say it's something we should fix, but this

Re: [UDA] Error: first argument is not a symbol

2016-09-15 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/15/16 4:48 AM, drug wrote: https://dpaste.dzfl.pl/9548c481ce46 shouldn't commented line return 'false' as built-in type 'int' has no any UDAs instead of cryptic (for me) message about wrong first argument? This is due to int not being a symbol, which apparently __traits(getAttributes,

[UDA] Error: first argument is not a symbol

2016-09-15 Thread drug via Digitalmars-d-learn
https://dpaste.dzfl.pl/9548c481ce46 shouldn't commented line return 'false' as built-in type 'int' has no any UDAs instead of cryptic (for me) message about wrong first argument?