www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - op= on get/set

reply icee <icee_member pathlink.com> writes:
When will the op= be implemented on a get/set property, e.g array.length+=1;
Is there some technical difficulty?
Jun 06 2006
parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"icee" <icee_member pathlink.com> wrote in message 
news:e65tfl$2p78$1 digitaldaemon.com...
 When will the op= be implemented on a get/set property, e.g 
 array.length+=1;
 Is there some technical difficulty?
It's difficult because the compiler would have to be able to match up the getters and setters for a given property, which, given D's rather "interesting" method of declaring properties and also because of possible implicit conversions, it might be a very difficult thing to do.
Jun 07 2006