stack out of scope ?
Alain De Vos
devosalain at ymail.com
Sun May 16 16:40:53 UTC 2021
This works also,
```
import std.stdio:writeln;
int [] fun(){
int[3]s=[1,2,3];
int[] r=s;
return r;
}
void main(){
writeln(fun()[0]);
}
```
More information about the Digitalmars-d-learn
mailing list