Validity of cast(void*)size_t.max

Steven Schveighoffer schveiguy at yahoo.com
Tue Feb 27 19:56:44 UTC 2018


On 2/27/18 11:37 AM, Nordlöw wrote:
> On Tuesday, 27 February 2018 at 16:31:51 UTC, Steven Schveighoffer wrote:
>> Why not use null?
>>
> 
> It's already used to indicate that a slot is free. :)

cast(void*)1 is likely to be unused.

-Steve


More information about the Digitalmars-d-learn mailing list