DMD 0.168 release

Kazuhiro Inaba kiki at kmonos.net
Tue Oct 3 00:46:40 PDT 2006


Walter Bright wrote:
> Better array literals.

Cooool!

I think it would be made even better if auto declarations and initialization of
stack variables with array literals can be combinedly used.
Currently, the following program fails to compile:

void main() { auto a = [1,2,3]; }
>> test.d(1): Error: cannot infer type from initializer
>> test.d(1): cannot implicitly convert expression ([1,2,3]) of type int[3] to int




More information about the Digitalmars-d-announce mailing list