properties as lvalues

cschueler cschueler_member at pathlink.com
Sat May 13 17:03:35 PDT 2006


>From the specs:

Note: Properties currently cannot be the lvalue of an op=, ++, or -- operator. 

This strikes me, as I thought this was very easy to do - just have the access
function return a reference to the value. Oh wait, there are no references in D
(at least I didn't find them in the specs)? I think C++ has explicit references
for a reason, and this might be a hint why this is so.





More information about the Digitalmars-d mailing list