automate tuple creation

Ali Çehreli acehreli at yahoo.com
Thu Jan 20 23:49:59 UTC 2022


On 1/20/22 15:10, Ali Çehreli wrote:

 > void foo(const int[]) {}      // Idiomatic

As H. S. Teoh would add at this point, that is not idiomatic but the 
following are (with different meanings):

void foo(const(int)[]) {}      // Idiomatic
void foo(const(int[])) {}      // Idiomatic

 > void foo(in int[]) {}         // Intentful :)

I still like that one. :)

Ali



More information about the Digitalmars-d-learn mailing list