property syntax strawman

Rainer Deyke rainerd at eldwood.com
Sun Aug 2 20:42:01 PDT 2009


Nick Sabalausky wrote:
> "Walter Bright" <newshound1 at digitalmars.com> wrote in message 
> news:h53g3i$elk$1 at digitalmars.com...
>>   bool empty { ... }
>>   void empty=(bool b) { ... }
> 
> I think that if D starts to make a habit of aping the ugly C++ approach to 
> adding new features (as this does), then we may as well just use C++. 

'prop=' for property setters is used by Io, not C++.  D already much
closer to C++ than Io.  (BTW, Io doesn't have operators in the same
sense that C++ and D do.  '+' and 'prop=' are just identifiers in Io.)


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list