User Defined Attributes
Maxim Fomin
maxim at maxim-fomin.ru
Tue Nov 6 00:56:25 PST 2012
On Tuesday, 6 November 2012 at 08:39:47 UTC, Jakob Ovrum wrote:
> On Tuesday, 6 November 2012 at 07:55:51 UTC, Walter Bright
> wrote:
>> -snip-
>
> It doesn't look like it would be possible to schedule any
> runtime code using this, meaning they're not usable for stuff
> like registering types for serialization support, or doing
> runtime linking when attached to a function pointer, etc.
>
Runtime arrtibutes can be implemented as properties in object.d.
This would work for classes only and for other types it can be
implemented manually. Runtime attributes require substantial
amount of work, introducing bugs, bloating ABI and new questions
about how this feature does work with others.
More information about the Digitalmars-d-announce
mailing list