October 29, 2008 What if no const T* const functName(const T&) in D | ||||
---|---|---|---|---|
| ||||
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 |
October 29, 2008 Re: What if no const T* const functName(const T&) in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sam Hu | 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) { }
|
Copyright © 1999-2021 by the D Language Foundation