pure, safe and generalized attributes
Leandro Lucarella
llucax at gmail.com
Fri Apr 4 11:06:02 PDT 2008
Janice Caron, el 4 de abril a las 08:42 me escribiste:
> 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)
> {
> ...
> }
Or something simpler, like Python's decorators:
@KilroyWasHere
int func(param p1)
{
...
}
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
All men are born equal
But quite a few get over it
More information about the Digitalmars-d
mailing list