DMD 0.167 release

clayasaurus clayasaurus at gmail.com
Mon Sep 18 13:53:11 PDT 2006


Walter Bright wrote:
> clayasaurus wrote:
>> Walter Bright wrote:
>>> Array literals, by popular demand.
>>>
>>> http://www.digitalmars.com/d/changelog.html
>>
>> Why isn't
>>
>> int bob[] = [2,3] allowed but
>>
>> int bob[]; bob = [2,3]
>>
>> is allowed?
> 
> A bug? <g>

Alright, is this feature supposed to work with multi-dimensional arrays 
as well? like...

bob[][] = [[2,3], [4,2], [2,0]];

I get 'invalid conversion from int[2][3] to int[][]'

Anyways I do like this feature, thanks!

~ Clay



More information about the Digitalmars-d-announce mailing list