Somehow give a warning when trying to assign a size_t/ptrdiff_t to int or uint
Mike Parker via Digitalmars-d
digitalmars-d at puremagic.com
Sun Apr 17 06:59:15 PDT 2016
On Sunday, 17 April 2016 at 11:26:02 UTC, Walter Bright wrote:
> My experience is that over time one gets used to writing 32/64
> bit portable code naturally, and the minor irritations don't
> happen anymore. D isn't a language that tries to hide the
> differences, and one should be aware of them.
Agreed. Before I joined the modern world and bought a 64-bit
machine three years back, any D source I made available almost
always attracted PRs changing uint to size_t. These days, I
regularly compile for both and haven't hit such an error in a
long, long time.
More information about the Digitalmars-d
mailing list