February 15, 2007 Possible bug with dereference operator + arrays | ||||
---|---|---|---|---|
| ||||
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*. |
Copyright © 1999-2021 by the D Language Foundation