D design problem on platforms with <32 bit pointer width
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Mon Aug 21 03:48:04 UTC 2023
On 21/08/2023 7:13 AM, Walter Bright wrote:
> Some things are impractical for D:
>
> 1. mixed near/far pointers
I've been thinking about this and I don't think that this is true.
Add two new core.attributes udas.
``enum near;`` and ``enum far;``
If we need segment support ``enum uda(string segment:"FS");`` would suffice.
Require it on all variable declarations, easy! Oh and don't forget to do
matching of argument/expression validation to declaration for @safe code.
More information about the Digitalmars-d
mailing list