May 30, 2004 array.length bug with stack arrays | ||||
---|---|---|---|---|
| ||||
void test() { char[0] scratch; scratch.length = 4096; } generates a bogus compiler error "'0' is not an lvalue", usually reported as being in some other module. Remove the assignment and it's fine. |
Copyright © 1999-2021 by the D Language Foundation