Internal error: e2ir.c 4629
Simon
s.d.hammett at gmail.com
Sat Nov 27 10:40:34 PST 2010
On 27/11/2010 16:16, spir wrote:
> Hello,
>
> I get the above error when compiling. No idea what it means.
> It happens when I add the following func:
>
> enum XHTML_CODES = ["&":"&", "<":"<", ">":">", "\"":""", "'":"'"];
>
> string xhtmlEscape (in string text) {
> string newText = text;
> foreach (string ch, string code ; XHTML_CODES)
> newText = replace(newText, ch, code);
> return newText;
> }
>
> (Note: writing codes as raw strings does not help.)
>
> Denis
> -- -- -- -- -- -- --
> vit esse estrany ☣
>
> spir.wikidot.com
>
The compiler expects AA literals to be mutable and you've made it
immutable by sticking it in an enum.
--
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
More information about the Digitalmars-d-learn
mailing list