On Sun, Oct 5, 2008 at 10:10 AM, NotFound <[EMAIL PROTECTED]> wrote:
> But a fake signature makes errors harder to find and can make
> optimized builds works different as normal ones.

I'm not sure how the signature is "fake".  An unsigned integer is a
subset of integer.  Parrot doesn't have a set of $U registers for
unsigned ints, does it? I suppose the routine that's directly called
from PIR could be wrapped by a separate one that gets called from
Perl6 by way of the stricter signature.

Although, for the record, on my part this is a purely philosophical
debate about signatures vs implementation and where the constraints
belong, etc.  As far as substr() itself goes, I would rather see it be
permissive and allow negative lengths.  But unlike Perl 5, I'd prefer
that it just return the empty string whenever the length is <= 0.
P5's weird  "nonnegative means length, negative means offset" behavior
is just way too counterintuitive IMO.

-- 
Mark J. Reed <[EMAIL PROTECTED]>

Reply via email to