User Defined Attributes

deadalnix deadalnix at gmail.com
Tue Nov 6 08:39:49 PST 2012


Le 06/11/2012 10:07, Walter Bright a écrit :
> n 11/6/2012 12:59 AM, Jakob Ovrum wrote:
>  > Problem is that there's no way to do this without having the user
> specify which
>  > modules it should work for, like:
>  >
>  > import attributes;
>  > import a, b, c;
>  >
>  > static this() // This code cannot be automated.
>  > {
>  > initAttributes!a();
>  > initAttributes!b();
>  > initAttributes!c();
>  > }
>  >
>
> Is that really a problem?

I'm not sure. How can AOP be implemented on top of that ?


More information about the Digitalmars-d-announce mailing list