Should (p - q) be disallowed in @safe code?
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sat Jan 3 02:37:08 UTC 2026
On 03/01/2026 3:29 PM, Walter Bright wrote:
>> The CPU does not have a concept of "memory object" or "different
>> memory objects". It usually does not even distinguish addresses from
>> other machine-word integers.
>
> It does with the segmented memory system of the IBM PC, and the banked
> memory card add-ons. I wrote a software virtual memory system using
> banked memory and segment registers. You didn't really want to use an
> offset larger than the memory allocated to that segment!
>
> But those designs are all obsolete now and irrelevant.
Web assembly is segmented :(
More information about the Digitalmars-d
mailing list