www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - What if no const T* const functName(const T&) in D

reply Sam Hu <samhu.samhu gmaill.com> writes:
I once heard that one of the most powerful thing in C++ is the lifetime control

wondering does this abandonment in D really caught a performance penalty
compare to C++.

Thanks and regards,
Sam
Oct 28 2008
parent Robert Fraser <fraserofthenight gmail.com> writes:
Sam Hu wrote:
 I once heard that one of the most powerful thing in C++ is the lifetime

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) { }
Oct 29 2008