in reply to Re^2: 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. $u is assigned '2'

...which appears to have been fixed already. It would have been clearer had the data been adjusted instead of the comment.

  • Comment on Re^3: Confused as to why the "casting context" is mis-behaving (docs)

Replies are listed 'Best First'.
Re^4: Confused as to why the "casting context" is mis-behaving (docs)
by moritz (Cardinal) on Oct 22, 2010 at 16:24 UTC
    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.
      '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.