User Defined Attributes
Jakob Ovrum
jakobovrum at gmail.com
Tue Nov 6 00:59:04 PST 2012
On Tuesday, 6 November 2012 at 08:50:32 UTC, Walter Bright wrote:
> To emphasize, the User Defined Attributes thing is completely a
> compile time feature. However, a user defined runtime system
> can be built on top of it.
>
> It gives the best of both worlds.
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();
}
More information about the Digitalmars-d-announce
mailing list