Transience of .front in input vs. forward ranges

deadalnix deadalnix at gmail.com
Tue Nov 6 06:48:17 PST 2012


Le 06/11/2012 15:44, Andrei Alexandrescu a écrit :
>>> Here's where user defined @tributes would help a lot. We'd then define
>>> @owned to mention that a class reference field inside an object must be
>>> duplicated upon copy:
>>>
>>> class A { ... }
>>>
>>> struct B
>>> {
>>> @owned A payload;
>>> A another;
>>> ...
>>> }
>>>
>>> That way a generic clone() routine could be written.
>>>
>>
>> You mentioned me once that AOP was useless in D.
>
> What's the connection?
>

This is OT. But this @owned stuff coupled with code that is generated 
depending on its presence IS AOP.


More information about the Digitalmars-d mailing list