in reply to Re^3: Confused as to why the "casting context" is mis-behaving (docs)
in thread Confused as to why the "casting context" is mis-behaving

Patch is wrong.

Right.

$u is assigned '2'

No, 'B'. Which is why it's clearer to change the comment, not the data.

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re^4: Confused as to why the "casting context" is mis-behaving (docs)

Replies are listed 'Best First'.
Re^5: Confused as to why the "casting context" is mis-behaving (docs)
by ikegami (Patriarch) on Oct 22, 2010 at 17:20 UTC
    'second' is the value returned in one case and not in the other. The lack of symmetry adds confusion.
      You're welcome to propose and submit a better patch which doesn't confuse you.

      I don't think of myself as a good technical writer, when I see a discussion about an undocumented feature, I try to come up with a patch. Feel free to improve it!

      Perl 6 - links to (nearly) everything that is Perl 6.