Thread overview | |||||
---|---|---|---|---|---|
|
April 02, 2013 Attributes | ||||
---|---|---|---|---|
| ||||
Quick question about attributes: Is it intended that after the '@' can come any number of blanks? Which means that '@property' is the same as '@ property'? |
April 02, 2013 Re: Attributes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Namespace | On 2013-04-02 15:40, Namespace wrote: > Quick question about attributes: > Is it intended that after the '@' can come any number of blanks? > Which means that '@property' is the same as '@ property'? Hmm, I'm not sure. I mean, "@property" is not a single token, it's two. In general you can have arbitrary amount of whitespace between tokens. -- /Jacob Carlborg |
April 02, 2013 Re: Attributes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Tuesday, 2 April 2013 at 14:17:19 UTC, Jacob Carlborg wrote:
> On 2013-04-02 15:40, Namespace wrote:
>> Quick question about attributes:
>> Is it intended that after the '@' can come any number of blanks?
>> Which means that '@property' is the same as '@ property'?
>
> Hmm, I'm not sure. I mean, "@property" is not a single token, it's two. In general you can have arbitrary amount of whitespace between tokens.
Yes all attributes consist of two tokens. But I was a bit shocked as I tried it and it worked. :D
|
Copyright © 1999-2021 by the D Language Foundation