Finding position of a value in an array

Ron Tarrant rontarrant at gmail.com
Mon Dec 30 19:47:46 UTC 2019


On Monday, 30 December 2019 at 19:46:50 UTC, Ron Tarrant wrote:

> Thanks, mipri. Got it sorted. Here's a working proof...

Forgot to show the output:

object: 17B0A831000, ID: 8
object: 17B0A831020, ID: 9
object: 17B0A831060, ID: 10
object: 17B0A831080, ID: 11
object: 17B0A8310A0, ID: 12
object: 17B0A8310C0, ID: 13
object: 17B0A8310E0, ID: 14
object: 17B0A831100, ID: 15
object: 17B0A831120, ID: 16
object: 17B0A831140, ID: 17
object: 17B0A831160, ID: 18
object: 17B0A831180, ID: 19
findPointer: find_in_array_object.MyObject, at address: 
17B0A8310C0 is a MyObject pointer in the objectArray with an 
index of 5, address: 17B0A8310C0, ID: 13


More information about the Digitalmars-d-learn mailing list