expression templates vs D arrays
    Andrei Alexandrescu 
    SeeWebsiteForEmail at erdani.org
       
    Thu Dec  8 09:16:17 PST 2011
    
    
  
On 12/8/11 6:16 AM, Timon Gehr wrote:
> Expression templates in D are syntactically more limited because it is
> impossible to overload the 'not' and comparison operators.
I think all operators must be overloadable. The key is to overload them 
_properly_. C++ botched a few (&&, ||, comma, ++, --) and that gave a 
bad reputation to the whole notion.
We've shown in D that e.g. ++ and -- are great to overload because it's 
done right. We can and we should do the same with all operators.
Andrei
    
    
More information about the Digitalmars-d
mailing list