static array error and a surprise!
MMagain
MMagain_member at pathlink.com
Mon Jun 26 17:32:05 PDT 2006
int[3] var=[1,2,3];
gives the error:
main.d(153): variable main.main.var is not a static and cannot have static
initializer
I thought int[3] a would be a static array ?
surprise question :D
(sorry about all the questions)
Is it considered good programming to use the c standard modules (like
std.c.stdio) or should, where possible, the non-c standard library modules(like
std.stdio) be used?
More information about the Digitalmars-d-learn
mailing list