Simple code that won't compile
ginophi
ginophi at fjw3n90v.com
Sat Jul 7 12:32:49 PDT 2007
My very simple test code
void main()
{
struct test
{
int a;
}
int b = 1;
test name[b];
}
doesn't compile and gives these errors:
test.d(9): Error: Integer constant expression expected instead of b
test.d(9): Error: Integer constant expression expected instead of
cast(uint)b
test.d(9): Error: Integer constant expression expected instead of
cast(uint)b
test.d(9): Error: Integer constant expression expected instead of
cast(uint)b
What am I doing wrong?
More information about the Digitalmars-d-learn
mailing list