Range violation with AAs

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 17 11:38:30 PDT 2016


On 10/17/2016 11:28 AM, Nordlöw wrote:
> On Monday, 17 October 2016 at 18:22:53 UTC, Ali Çehreli wrote:
>> Unfortunately, as far as I know, that's a privilege reserved for
>> built-in AAs.
>
> But I *am* using a built-in AA. The problem happens when the value is an
> instance of an `Array!T`-container and not a slice `T[]`.

Sorry... :/

As a consolation :) there are two unrelated issues in your code, which a 
new dmd warns about:

   Deprecation: Implicit string concatenation is deprecated

1) Probably a missing comma after `mark`:

enum nonStateHTMLTags = [`b`, `i`, `strong`, `em`, `sub`, `sup`, 
`small`, `ins`, `del`, `mark`
                          `code`, `kbd`, `samp`, `samp`, `var`, `pre`];

2) Missng ~ here:

                         `<mn mathsize="80%">` ~ zexp ~ `</mn>`
                         `</msup>` ~

Ali



More information about the Digitalmars-d-learn mailing list