On Borrow Checking

Walter Bright newshound2 at digitalmars.com
Sat May 10 04:07:11 UTC 2025


On 5/7/2025 6:27 PM, Meta wrote:
> And this is exactly what Rust does with the borrowed/raw pointer distinction. 
> Walter how can you claim to have studied the Rust spec yet miss and/or disregard 
> this fundamental detail?

I did not miss it. See my reply to Timon.


> And do not bring up that extremely outdated and 
> irrelevant example of near/far pointers in DOS.

Yes it is dated, as modern languages abandoned multiple pointer types based on 
that experience.

The only one I even know about is Microsoft Managed C++, where they have gc and 
nogc pointers. What a disaster. Nobody wants to write code in Managed C++. That 
scheme never made it into Standard C++.

A feature needs to be useful and easy to use in order to get people to use it.



More information about the Digitalmars-d mailing list