On Sun, 09 Nov 2014 12:46:28 +0000
novice2 via Digitalmars-d <digitalmars-d@puremagic.com> 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.

Attachment: signature.asc
Description: PGP signature

Reply via email to