Does to!(string)(char[]) do any memory allocation on conversion?

Temtaime temtaime at gmail.com
Mon Dec 25 14:36:43 UTC 2017


On Monday, 25 December 2017 at 14:12:32 UTC, Marc wrote:
> Does to!(string)(char[]) do any memory allocation on conversion 
> or is this similar to a cast or what else?

It is translated to idup.
So yes, it allocates memory.


More information about the Digitalmars-d-learn mailing list