Easy way to implement interface properties?

Frustrated c1514843 at drdrb.com
Tue Dec 31 16:48:07 PST 2013


Is there an easy way to implement properties of an interface 
within a class instead of having to duplicate almost the exact 
same code with generic properties?

interface A
{
     @property int data() { return m_data; } // read property
   @property int data(int value) { return m_data = value; } // 
write property

}


More information about the Digitalmars-d-learn mailing list