Validity of cast(void*)size_t.max
Steven Schveighoffer
schveiguy at yahoo.com
Tue Feb 27 16:31:51 UTC 2018
On 2/27/18 9:13 AM, Nordlöw wrote:
> Is `cast(void*)size_t.max` always an invalid address?
You mean, can it point at valid data? Possibly, but likely not. In my
past as an embedded developer, a lot of times the interrupt vectors are
stored at the end of address space.
> Is so, could it be used to indicate removed/delete elements in hash
> tables with open addressing and a key type being either a pointer or class?
>
Why not use null?
-Steve
More information about the Digitalmars-d-learn
mailing list