pass by value && elide dtor + post-blit

Namespace via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 21 02:03:18 PDT 2015


> Dear Ali,
>
> thank you for helping! Problem happens when passing by value as 
> in param.

Change 'foo' to this:
----
ref S foo(ref S s)
{
     s.val+=1;
     return s;
}
----



More information about the Digitalmars-d-learn mailing list