template type deduction of static 2d arrays

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Oct 24 17:46:53 PDT 2014


On Sat, 25 Oct 2014 00:38:37 +0000
uri via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:

> On Saturday, 25 October 2014 at 00:00:54 UTC, ketmar via 
> Digitalmars-d-learn >
> 
> 
> > we have a nice PR from Kenji that allows the following 
> > declarations:
> >
> >   int[$][$] a = [ [1,2],[3,4] ];
> >
> > but alas, it's not in the mainline yet.
> This will be cool, especially auto[$][$] also works.
yes, it works with that PR. i don't remember why it wasn't accepted,
though. i'm using it in my DMD build since day one and observed no
problems at all.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141025/e9515dc5/attachment.sig>


More information about the Digitalmars-d-learn mailing list