Bruno Medeiros <brunodomedeiros+spam@com.gmail> wrote:

string[] func(string arg) pure {
     string elem2 = "blah".idup;
     return [ arg, elem2 ];
}

The compiler *cannot* know (well, looking at the signature only of course) how to properly deepdup the result from the first return value, so as to give the exact same result as if func was called again.

Could you please elucidate, as I am unsure of your reasoning for saying
the compiler cannot know how to deepdup the result.

--
Simen

Reply via email to