var length array error

Iain Buclaw ibuclaw at ubuntu.com
Sun Sep 1 23:01:04 PDT 2013


On 2 September 2013 05:24, Ramon <spam at thanks.no> 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?
>
> Thanks - R


Please raise a bug at bugzilla.gdcproject.org

Thanks!


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the D.gnu mailing list