Borrow Checking and Ownership Transfer
Araq
rumpf_a at web.de
Sun May 18 05:15:02 UTC 2025
On Sunday, 18 May 2025 at 03:34:43 UTC, Walter Bright wrote:
> On 5/12/2025 11:21 PM, Paulo Pinto wrote:
>> On Monday, 12 May 2025 at 21:38:28 UTC, Walter Bright wrote:
>>> It never made it into the C++ Standard, and its only use is
>>> CLI.
>>
>> So what.
>
> Why wouldn't a GC pointer be of general utility in C++?
The GC pointer in C++ is called shared_ptr and it was considered
to be of general utility... But .NET comes with its own GC based
on tracing, not on reference counting and thus they added a
pointer type for this. This is just some very basic good design,
stop acting like multiple pointer types are somehow a "failed
experiment", it's ridiculous.
More information about the Digitalmars-d
mailing list