On 10/07/14 20:15, H. S. Teoh via Digitalmars-d wrote:

        class C {}
        C myFunc(C obj) {
                obj.doSomething();
                return obj; // will be rejected if parameters are scoped by 
default
        }

Hmm, why wouldn't that work? The scope where you called "myFunc" is guaranteed to outlive "myFunc".

--
/Jacob Carlborg

Reply via email to