Example error for initializer?

Paolo Invernizzi arathorn at NOSPAM_fastwebnet.it
Wed Jun 21 14:01:11 PDT 2006


Hi all,

In http://www.digitalmars.com/d/arrays.html under Pointer Arithmetic 
there's:

int[] def = [ 1, 2, 3 ];	// dynamic array of 3 ints

but does not compile (dmd .0161):

   variable xdelta.main.def is not a static and cannot have static 
initializer

Example error?

---
Paolo Invernizzi



More information about the Digitalmars-d-learn mailing list