std.typecons.Rebindable

Frustrated c1514843 at drdrb.com
Fri Jan 31 04:43:21 PST 2014


On Friday, 31 January 2014 at 08:40:30 UTC, Jack Applegame wrote:
> Why doesn't Rebindable allow associative arrays?
>
> import std.typecons;
>
> Rebindable!(immutable string[]) data1;       // ok
> Rebindable!(immutable string[string]) data2; // error

an associative array doesn't pass the isArray test

isArray!(string[]) // true
isArray!(string[string]) // false

Not sure if there is some inherent reason why but I would venture
to say it is a bug.


More information about the Digitalmars-d-learn mailing list