Proposal: user defined attributes

deadalnix deadalnix at gmail.com
Wed Mar 21 16:02:49 PDT 2012


Le 21/03/2012 17:22, Andrei Alexandrescu a écrit :
> On 3/21/12 11:17 AM, Timon Gehr wrote:
>> On 03/20/2012 10:36 PM, deadalnix wrote:
>>> Even the propagation of pure, @safe, nothrow and const that has been
>>> discussed recently can be done with that feature.
>>>
>>
>> I'm sceptical. How would that work exactly?
>
> I, too, am highly skeptical. For one thing these attributes must be made
> part of the type and have deep connections with code semantics.
>
> Andrei

That is the point. The property must be able to manipulate what is 
qualified. This is the point of AOP.

If you let me some time, I could write a proposal. BTW, this is probably 
something we don't want to rush in, but I'm sure it definitively worth it.

Have you seen what a project like lombok can do ?


More information about the Digitalmars-d mailing list