Comparing pointers in C and D

Ali Çehreli acehreli at yahoo.com
Thu Feb 16 06:46:16 UTC 2023


On 2/15/23 22:28, Paul Backus wrote:

 > In C the addition itself is defined behavior (you are allowed to create
 > a pointer to "one past the end" of an object)

To be pedantic, "one past" is always applied to "the last element of the 
array object". My reaction was to the non-array object in the code. :)

 > it's safe to assume that it inherits C's semantics.

I think so too.

Ali



More information about the Digitalmars-d mailing list