Possible bug with dereference operator + arrays
Jarrett Billingsley
kb3ctd2 at yahoo.com
Wed Feb 14 18:13:41 PST 2007
The implicit T[] -> T* conversion disappeared, but there may still be
vestiges. You can still dereference an array to get the first element:
int[] a = [1, 2];
writefln(*a);
This is mostly a problem with determining if a type is an array type or a
pointer type, since is(typeof(*T)) will return true if T is an int[] or if
it's an int*.
More information about the Digitalmars-d-bugs
mailing list