d malloc
seany via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Aug 8 11:47:26 PDT 2014
On Friday, 8 August 2014 at 17:44:29 UTC, anonymous wrote:
> On Friday, 8 August 2014 at 17:07:37 UTC, seany wrote:
>> And as discussed earlier, I was trying to save the pointers in
>> an ulong (which is same as size_t or ptr_t, those are aliased)
>
> (when compiling for x86-64 that is)
>
> Generally, casting pointers to size_t is a horrible idea. Why
> can't you at least go with void*?
>
I am very confused. Void* magically sorted a lot of problems out.
Why are void pointers better than ulong, if I may ask (yes, I am
on a x86-64)
More information about the Digitalmars-d-learn
mailing list