So, User-Defined Attributes
Timon Gehr
timon.gehr at gmx.ch
Sun Jan 6 15:01:03 PST 2013
On 01/06/2013 11:24 PM, deadalnix wrote:
> On Saturday, 5 January 2013 at 22:14:47 UTC, Walter Bright wrote:
>> On 1/5/2013 2:06 PM, Philippe Sigaud wrote:
>>> But why is @(MyType) accepted, whereas @(int) is not?
>>
>> Because it's looking for an expression inside the parents, and int is
>> not an expression.
>
> And mytype is an expression ?????
Sure!
...
struct IdentifierExp : Expression
{
Identifier *ident;
Declaration *var;
...
More information about the Digitalmars-d
mailing list