Ali Çehreli Wrote:

> I have another question: Does calling .idup copy any data below?
> 
> string foo()
> {
>      char[] s;
>      return s.idup;  // Is the content copied?
> }
> 
> Ali
> 

Yes, dup stands for duplicate and is a property of arrays.

There was discussion for allowing immutable objects to be created and return 
from pure functions.

Reply via email to