Borrow Checking and Ownership Transfer
Paulo
pjmlp at progtools.org
Sun May 11 15:53:44 UTC 2025
On Saturday, 10 May 2025 at 23:25:13 UTC, Walter Bright wrote:
> On 5/10/2025 6:07 AM, Derek Fawcus wrote:
>> D itself already has 3 different types of pointer: references,
>> pointers, arrays/slices.
>
> Plus `this`, lazy, delegates, associative arrays and class
> references.
>
> They were part of the initial design of D, the language grew up
> around them.
>
> They've also made for making dip1000 very complex to implement.
>
> Trying to fold in a new pointer type is a huge change.
>
> (If I was doing a do-over for D, I'd look hard at dumping about
> half of those. I tried to get rid of lazy a few years ago, but
> got a lot of pushback on it.)
>
> Microsoft's Managed C++ has regular pointers and gc pointers,
> distinguished with different syntax. It was a failure in the
> marketplace.
You keep repeating this, sorry but it only goes to show how
little you know about the modern Microsoft ecosystem.
Not only did Managed C++ evolve into C++/CLI, did C++/CLI get
updated to C++20 back in 2023, and has several bug fixes coming
up on Visual Studio 2022 17.4.
https://devblogs.microsoft.com/cppblog/cpp20-support-comes-to-cpp-cli
https://devblogs.microsoft.com/cppblog/c-language-updates-in-msvc-in-visual-studio-2022-17-14/#c++/cli
C++/CLI is the to go tool for many developers that rather not
spend all day writing P/Invoke attributes, when it is a big C++
library being added into a .NET project.
More information about the Digitalmars-d
mailing list