dChar Error

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Fri Dec 30 04:54:39 UTC 2022


Because, string literals are in Read Only Memory (or should be anyway).

If you write to ROM, it'll of course error by the CPU.

So when you duplicated it, it was no longer in ROM, and therefore writable.


More information about the Digitalmars-d-learn mailing list