Dynamic arrays / ~= giving an exception...
Robert M. Münch
robert.muench at saphirion.com
Sun Jul 1 20:55:16 UTC 2018
I'm a bit puzzled because I think this is pretty straight forward but
doesn't work...
struct mystruct {
myPtr* root;
opApply(...){
myPtr*[] childs;
childs ~= root;
...
}
}
foreach(node; mystruct(myRoot)){
...
}
It compiles but the line with ~= gives the nice "bing" under Windows
and the application hangs...
What doesn't this work?
--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
More information about the Digitalmars-d-learn
mailing list