NotFound wrote:
But if you talk about perl6, this is not applicable, the perl6 function can have any wanted signature, it will never call the function directly, it emits the opcode that will call it and can insert any check or change of his argument. If the sub implementation allows accidental sign changes, this will be his own bug.
For perl 6, in the area of negative values, see also patch rt 57722.
Ron