Enumap -- a lightweight AA alternative when your keys are enums

rcorre via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Sep 11 04:54:14 PDT 2015


On Friday, 11 September 2015 at 08:22:20 UTC, Kagamin wrote:
> On Friday, 11 September 2015 at 02:17:25 UTC, rcorre wrote:
>> @nogc void donFancyHat(Enumap!(Attribute, int) map) { 
>> map.charisma += 1; }
>
> BTW, what this means? Isn't Enumap a value type?

Correct, the parameter should be passed by ref in that example. 
Good catch!


More information about the Digitalmars-d-announce mailing list