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!

Reply via email to