On 8/31/05, Yuval Kogman <[EMAIL PROTECTED]> wrote:
> On Wed, Aug 31, 2005 at 04:56:25 -0600, Luke Palmer wrote:
>
> > (That is, lexically binding &prefix:<+> does not change things in
> > numeric context; only when there's actually a + in front of them)
>
> Unless you override &prefix:<+> ?
>
> sub foo (&prefix:<+>) { +1 }
Uh yeah, I think that's what I was saying. To clarify:
sub foo (&prefix:<+>) { 1 == 2 } # 1 and 2 in numeric context
foo(&say); # nothing printed
But:
sub foo (&prefix:<+>) { +1 == +2 }
foo(&say); # "1" and "2" printed
Luke