Associative arrays can't have a static array as key

Michiel nomail at hotmail.com
Thu Feb 8 07:11:09 PST 2007


> foo("blah"[]);
>
> Notice the slice operator.  This converts the static array into a dynamic
> one.  Kind of ugly, but.

Hm.. Yes. That works. But I was hoping for a solution inside the function
definition, so i could still use regular string literals.



More information about the Digitalmars-d mailing list