Bug with associative array properties - new in v2.064.2

bearophile bearophileHUGS at lycos.com
Wed Nov 13 03:03:46 PST 2013


Gary Willoughby:

> 		int[string] a;
>
> 		auto b = a.sizeof;
> 		auto c = a.length;
> 		auto d = a.dup;
> 		auto e = a.keys;
> 		auto f = a.values;
> 		a.rehash;
> 	}
>
> Compile with: rdmd -property test.d
>
> Output:
>
> test.d(7): Error: not a property a.dup
> test.d(8): Error: not a property a.rehash
> Failed: 'dmd' '-property' '-v' '-o-' 'test.d' '-I.'

Associative arrays don't have a dup.

https://d.puremagic.com/issues/show_bug.cgi?id=11509

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list