On Tuesday, 26 June 2012 at 03:02:45 UTC, Jesse Phillips wrote:
Linux places string literals in Read-Only Memory, Windows does not. This is OS specific behavior and does not relate to the language in the least.
Isn't it compiler-specific behavior? Visual C++ does this on Windows.After all, it's up to the compiler to place it in a read-only segment rather than a writable segment.