automatically verifying code samples in phobos docs
Timon Gehr via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Aug 19 17:00:54 PDT 2015
On 08/20/2015 01:41 AM, Laeeth Isharc wrote:
>
> BTW I don't know why you can't convert a char[] to string - seems
> harmless enough conversion that way around.
It would need to allocate a new string, otherwise, one would be able to
modify the contents of the immutable string via the char[] reference.
More information about the Digitalmars-d-learn
mailing list