This makes the compiler crash. Is it illegal code? struct List { private List* head; private List* tail;
this(int x) { head = null; tail = &this; // <-- crasher } } List2 ls = 2;
Eric via Digitalmars-d-learn Mon, 16 Jul 2018 15:11:28 -0700
This makes the compiler crash. Is it illegal code? struct List { private List* head; private List* tail;
this(int x) { head = null; tail = &this; // <-- crasher } } List2 ls = 2;