isArray and std.container.Array

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 28 09:12:52 PDT 2014


On Sunday, 28 September 2014 at 08:01:00 UTC, Nordlöw wrote:
> Is there a reason why isArray!T doesn't match T when T is a 
> std.container.Array? I'm asking because after looking into 
> msgpack-d because of
>
> http://forum.dlang.org/thread/aclapseyptgcwntdavwt@forum.dlang.org#post-aclapseyptgcwntdavwt:40forum.dlang.org
>
> I realized that this is the reason why msgpack doesn't 
> correctly pack std.container.Array.

It's just an oversight in isArray as far as I can tell. I don't 
know if there's any specific reason that Array is not considered 
an array.


More information about the Digitalmars-d-learn mailing list