[OT] Programming language WATs

Adam D. Ruppe destructionator at gmail.com
Fri Jan 20 19:20:36 PST 2012


On Saturday, 21 January 2012 at 03:18:43 UTC, Jonathan M Davis 
wrote:
> Yeah. String literals should definitely be immutable rvalues,

consider this though:

auto a = "hello";
a = "new";

If is("hello" == immutable(char[])), then a would
be too, and the rebinding would fail.

That'd be annoying.


More information about the Digitalmars-d mailing list