On 15/09/2014 5:51 p.m., Andrei Alexandrescu wrote:
On 9/14/14, 9:51 PM, Rikki Cattermole wrote:
static assert("abc".refCounted == "abc");
The idea is we want to write things like:
String s = "abc";
and have it be either refcounted or "classic" depending on the
definition of String. With a user-defined String, you need:
String s = String("abc");
or
auto s = String("abc");
Andrei
Yeah I thought so.
Still I think the whole with statement would be a better direction to
go, but what ever. I'll drop it.