On Sun, 09 Nov 2014 12:46:28 +0000 novice2 via Digitalmars-d <[email protected]> wrote:
> int[3] test1()
> {
> int[3] arr;
> ...
> }
>
> disasm shows:
> - arr created on stack
> - arr address returned
> - stack changed
> - data lost.
hm. what i see in disasm is: array is created on the *caller* stack.
then address of that array passed to `test1()` as hidden argument, so
`test1()` actually returns nothing at all, it just changes that passed
array.
signature.asc
Description: PGP signature
