On Friday, 6 May 2016 at 20:29:35 UTC, Adam D. Ruppe wrote:
On Friday, 6 May 2016 at 20:01:27 UTC, Alexandru Ermicioi wrote:
Is it possible somehow to convert implicitly a string literal

Not implicitly (well, unless you just use string, ascii is a strict subset of utf-8 anyway), but you could do it explicitly easily.

immutable(ubyte)[] ascii(string s) { return cast(typeof(return)) s; }

Is this different from what std.string.representation does?

Reply via email to