Integer constant expression expected instead of...

Era Scarecrow rtcvb32 at yahoo.com
Sun Sep 1 18:08:26 PDT 2013


[code]
   enum fieldEntryLength = 4;
   //immutable fieldEntryLength = 4; //same issue
   alias immutable(char[fieldEntryLength]) NString;
[/code]

test.d(10): Error: Integer constant expression expected instead 
of fieldEntryLength


  This breaks code that previously compiled. I really don't see 
the problem... bug?

  Version: Windows DMD32 D Compiler v2.063.2


More information about the Digitalmars-d-learn mailing list