[perl #118479] Untyped hashes are considered to be {Str}, but act differently from hashes typed with {Str}

2013-06-14 Thread via RT
# New Ticket Created by Elizabeth Mattijsen # Please include the string: [perl #118479] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=118479 > r: class A {}; my %h=A.new => 1; say %h; my %h2{Str}=A.new => 1;

[perl #118479] Untyped hashes are considered to be {Str}, but act differently from hashes typed with {Str}

2013-06-14 Thread Patrick R. Michaud via RT
> So either STORE_AT_KEY for typed hashes should stringify objects >silently if the keytype is Str, like untyped hashes do. Or untyped >hashes should *not* automatically stringify objects. Untyped hashes are {Str(Any)} -- see S09:1187: The standard Hash: my %hash; is real