int[] inttable = [ 1, 4, version(smth) { // <--- does not compile 5, 6, } 8, 1345 ];
(real world case: https://github.com/ldc-developers/ldc/blob/merge-2.069/ddmd/idgen.d#L279)
If it is not possible, what alternative solution would you use? Thanks!
Johan Engelen via Digitalmars-d-learn Mon, 18 Jan 2016 16:35:57 -0800
int[] inttable = [ 1, 4, version(smth) { // <--- does not compile 5, 6, } 8, 1345 ];
(real world case: https://github.com/ldc-developers/ldc/blob/merge-2.069/ddmd/idgen.d#L279)
If it is not possible, what alternative solution would you use? Thanks!