Empty Associative Aarray Literal

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 3 14:50:28 PST 2016


On 03/03/2016 02:06 PM, Jack Stouffer wrote:

> This doesn't work either
>
> string func(int a, int[int] b = int[int].init) {

Parentheses around int[int] works though. I don't know whether it's a bug.

string func(int a, int[int] b = (int[int]).init) {

Ali



More information about the Digitalmars-d-learn mailing list