convert static arrays to dynamic arrays and return, have wrong data.

novice2 via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 9 04:46:28 PST 2014


int[3] test1()
{
   int[3] arr;
   ...
}

disasm shows:
- arr created on stack
- arr address returned
- stack changed
- data lost.



More information about the Digitalmars-d mailing list