What ever happened to move semantics?
electricface
electricface at qq.com
Fri Mar 1 01:57:47 UTC 2024
On Thursday, 29 February 2024 at 05:51:32 UTC, electricface wrote:
> On Thursday, 29 February 2024 at 04:24:02 UTC, Walter Bright
> wrote:
>> I do share your concern, Don. I worry that we know so well how
>> C++ does it that we can't conceive of a better way. If we
>> cannot do mucho better than C++ with this, why are we using D?
>>
>> D already does some things so much better than C++ by thinking
>> "dammit there's got to be a better way than this mess!"
>>
>> Things like no ADL, decent modules, simple template syntax,
>> easy to understand overloading, context-free grammar, slices,
>> etc.
>
> Try using DFA technology not during normal compilation in the
> compiler, but in an alternative checking mode that maintains
> compilation performance while allowing program-assisted
> analysis.
Try to linguistically mark the last usage of a variable, and then
develop a fast verification algorithm to improve the performance
of analyzing the last usage of variables. It can also use
expensive but comprehensive algorithm to guide people in marking
the last usage of a variable.
More information about the Digitalmars-d
mailing list