What if no const T* const functName(const T&) in D

Robert Fraser fraserofthenight at gmail.com
Wed Oct 29 00:24:32 PDT 2008


Sam Hu wrote:
> I once heard that one of the most powerful thing in C++ is the lifetime control qualifiers. Why both C# and D abandoned the subjected qualifiers.I was wondering does this abandonment in D really caught a performance penalty compare to C++.
> 
> Thanks and regards,
> Sam

If I understand what you're saying, that _is_ in D2:

const(T*) functName(const ref T) { }


More information about the Digitalmars-d-learn mailing list