Why doesn't this program dups core ? Is s not recycled ? ``` import std.stdio:writeln; void main(){ //I point to the heap int[] p=[1,2,3]; { int[3]s=[1,2,3]; //I point to the stack p=s; } //Why do I still live ? writeln(p[0]); } ```
- stack out of scope ? Alain De Vos via Digitalmars-d-learn
- Re: stack out of scope ? Alain De Vos via Digitalmars-d-learn
- Re: stack out of scope ? H. S. Teoh via Digitalmars-d-learn
- Re: stack out of scope ? Alain De Vos via Digitalmars-d-learn
- Re: stack out of scope ? ag0aep6g via Digitalmars-d-learn
- Re: stack out of sco... Alain De Vos via Digitalmars-d-learn
- Re: stack out o... Alain De Vos via Digitalmars-d-learn
- Re: stack o... Kyle via Digitalmars-d-learn
- Re: sta... Alain De Vos via Digitalmars-d-learn
- Re: sta... Alain De Vos via Digitalmars-d-learn
- Re: stack out of scope ? H. S. Teoh via Digitalmars-d-learn