Finding position of a value in an array

mipri mipri at
Mon Dec 30 14:41:55 UTC 2019

On Monday, 30 December 2019 at 14:30:12 UTC, Ron Tarrant wrote:
> On Sunday, 29 December 2019 at 09:44:18 UTC, MoonlightSentinel 
> wrote:
>> int i = a.countUntil(55);
> 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):
> find_in_array_object.d(25): Error: cannot cast expression 
> newObject of type find_in_array_object.MyObject to ulong

What's your code? 'find_in_array_object.MyObject' doesn't look
like a pointer.

More information about the Digitalmars-d-learn mailing list