static array with inferred size

Steven Schveighoffer schveiguy at
Wed Sep 20 00:47:25 UTC 2017

This needs to happen.


char[$] arr = "hello"; // syntax up for debate, but I like this.

I can't think of a correct way to do this that doesn't heap-allocate and 
is DRY.

D is so powerful, it's a huge shame it can't figure this one out.


Fix that was merged:

And then reverted:

Maybe there was an issue with the implementation? Can it be redone?


More information about the Digitalmars-d mailing list