C-like static array size inference - how?

Ali Çehreli acehreli at yahoo.com
Wed Jun 8 00:43:24 UTC 2022


On 6/7/22 16:38, arandomonlooker wrote:

> There is any chance size inference is going to be implemented into D as 
> a feature?

Do I remember correctly that there were syntax proposals that used $ or _?

   int[$] arr = [ 1, 2 ];
   int[_] arr = [ 1, 2 ];

But I can't find past discussions about that.

Ali


More information about the Digitalmars-d-learn mailing list