pure, safe and generalized attributes

Knud Soerensen 4tuu4k002 at sneakemail.com
Sat Apr 5 08:09:56 PDT 2008


Janice Caron wrote:
> On 04/04/2008, Knud Soerensen <4tuu4k002 at sneakemail.com> wrote:
> <snip>
> 
> Nice. But to avoid accruing an infinite number of keywords, the syntax
> needs to be slightly changed. Instead of
> 
>     int func(param p1) KilroyWasHere
>     {
>         ...
>     }
> 
> use
> 
>     int func(param p1) attribute(KilroyWasHere)
>     {
>         ...
>     }

You could also ague that it is not necessary because
attributes can only appear in certain places

only in function, class, struct and module declarations.



More information about the Digitalmars-d mailing list