Re: var length array error

2013-09-01 Thread Iain Buclaw
On 2 September 2013 07:01, Iain Buclaw wrote: > On 2 September 2013 05:24, Ramon wrote: >> Hi >> >> >> struct Entry {...} >> Entry[] table; >> >> int main(string[] args) >> { >>... >>table.length++; >>... >> } >> >> >> GDC -> Error: table.length is not an lvalue >> >> >> Remark: The s

Re: var length array error

2013-09-01 Thread Iain Buclaw
On 2 September 2013 05:24, Ramon wrote: > Hi > > > struct Entry {...} > Entry[] table; > > int main(string[] args) > { >... >table.length++; >... > } > > > GDC -> Error: table.length is not an lvalue > > > Remark: The same code compiles (and works) with DMD. > > What am I doing wrong?

var length array error

2013-09-01 Thread Ramon
Hi struct Entry {...} Entry[] table; int main(string[] args) { ... table.length++; ... } GDC -> Error: table.length is not an lvalue Remark: The same code compiles (and works) with DMD. What am I doing wrong? Thanks - R