Steven Schveighoffer:

> D makes arrays as safe as possible, and as useful as possible.  The  
> pointer value itself is an implementation detail, and should rarely be  
> used to determine logic.

D array design also leads to some traps, like forgetting to use "ref" here:

void append5andMore(int[] a) {
    a ~= 5;
    a.length++;
}


I have had some of such bugs in my D code.

Bye,
bearophile

Reply via email to