The 'length' property of an associative array should be usable from @safe code, but isn't. The following code doesn't compile: -------------- module assoc; import std.stdio; string[int] a = [1: "foo", 2: "bar"]; @safe void main() { writefln("%d items.", a.length); } -------------- The compiler output is: assoc.d(9): Error: safe function 'main' cannot call system function 'length'
*** This issue has been marked as a duplicate of issue 6357 ***