Re: Is this defined behaviour in D?

2017-09-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, September 25, 2017 13:06:56 John Burton via Digitalmars-d-learn wrote: > If I have a int* pointer for example, that points to the start of > an int array and step through the array until I get the value > 123, is it defined in D what happens if you step off the end of > the array? > >

Re: Is this defined behaviour in D?

2017-09-25 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/25/17 9:06 AM, John Burton wrote: If I have a int* pointer for example, that points to the start of an int array and step through the array until I get the value 123, is it defined in D what happens if you step off the end of the array? What I might expect to happen is for the code to

Is this defined behaviour in D?

2017-09-25 Thread John Burton via Digitalmars-d-learn
If I have a int* pointer for example, that points to the start of an int array and step through the array until I get the value 123, is it defined in D what happens if you step off the end of the array? What I might expect to happen is for the code to just keep stepping through sequential