User Defined Attributes

David Nadlinger see at klickverbot.at
Tue Nov 6 10:45:50 PST 2012


On Tuesday, 6 November 2012 at 18:36:54 UTC, Walter Bright wrote:
> For example:
>
>    @seperate
>
> and sometime later:
>
>    @separate
>
> How long will it be before that bug is noticed?

This doesn't put the @-syntax out of the game, though: @attribute 
could just be equivalent to @(attribute) and look up "attribute" 
in the local scope, following the usual rules. This would look 
much better than the bracket syntax, at least in my opinion, and 
avoid confusion with array literals.

David


More information about the Digitalmars-d-announce mailing list