Finding position of a value in an array

MoonlightSentinel moonlightsentinel at disroot.org
Mon Dec 30 17:12:26 UTC 2019


On Monday, 30 December 2019 at 14:30:12 UTC, Ron Tarrant wrote:
> I was trying to do this with an array of pointers, but I get an 
> error (which suggests to me that I don't know what data type a 
> pointer is):
>
> It's not a ulong? Have I forgotten so much?

D disallows implicit conversion from integers to pointers and 
hence they cannot be compared. You would need to explicitly cast 
your ulong to an appropriate pointer type


More information about the Digitalmars-d-learn mailing list