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.
Temtaime via Digitalmars-d-learn Mon, 25 Dec 2017 06:40:57 -0800
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.