Enumap -- a lightweight AA alternative when your keys are enums
rcorre via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Sat Sep 12 20:33:14 PDT 2015
On Friday, 11 September 2015 at 03:25:58 UTC, SimonN wrote:
>
> It doesn't seem to matter whether I put const int, or int, in
> the foreach statement.
>
> What's the idiomatic way to loop over a const Enumap? :-)
>
> -- Simon
I've released v0.4.0, which implements foreach with ref, and
(hopefully) atones for my crimes against const-correctness. You
should be able to modify values in a loop and work with
const/immutable Enumaps.
Thanks for the feedback!
More information about the Digitalmars-d-announce
mailing list