Hi all,I was hoping to store objects of class Foo in a BagHash in the expectation that objects that are "the same" share their keys. But if I do something like
my $b = BagHash.new();
for 1..3 {
$b{['foo']}++;
}
say $b.perl;
#(perl6 version 2014.09 built on MoarVM version 2014.09, Windows 7)
Perl6 considers all entries as new, and the hash has 3 separate entries.
Do I actually have to project my objects to strings to accomplish this?
Thanks -- Theo van den Heuvel Van den Heuvel HLT Consultancy
