Why D is annoying =P
Mehrdad
wfunction at hotmail.com
Wed Oct 24 13:24:21 PDT 2012
On Wednesday, 24 October 2012 at 20:18:07 UTC, Mehrdad wrote:
> On Wednesday, 24 October 2012 at 20:15:07 UTC, H. S. Teoh wrote:
>> hashOf works for pretty much anything (it's just a byte-based
>> algo).
>
>
> Byte-based?
>
> what about
>
>
> Set!(Tuple!(int, string)) s;
> s[tuple(1, "hi")] = 1;
> writeln(tuple(1, "hi".dup) in s); // null or not?
my bad, I mixed up AA and sets.
That was supposed to insert the item, not map it to 1. Would it
work?
More information about the Digitalmars-d
mailing list