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.

Reply via email to