Custom attributes (again)

deadalnix deadalnix at gmail.com
Mon Apr 9 14:49:06 PDT 2012


Le 08/04/2012 12:44, Jacob Carlborg a écrit :
> On 2012-04-08 09:27, Marco Leise wrote:
>> I don't want this thread to disappear. The ideas presented here have
>> common basic features among the nice-to-haves.
>
>> For these to work it would require:
>> - user annotations to functions/methods/structs/classes
>> - only CTFE support (as annotations don't change at runtime)
>
> I don't see why the attributes should be accessible at runtime. Even if
> they're read-only it's still good to be able to read the attributes at
> runtime.
>

If it is available at compile time, it is implementable at runtime as a 
lib. So you pay for it only if you use it, and you don't add feature in 
the language just because it is convenient.


More information about the Digitalmars-d mailing list