On 5/19/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> quoting A12:
> > infix_postfix_meta_operator:<=>             $x += 2;
> > postfix_prefix_meta_operator:{'»'}         @array »++
> > prefix_postfix_meta_operator:{'«'}         -« @magnitudes
> > infix_circumfix_meta_operator:{'»','«'}   @a »+« @b
> 
> so will the following work?
> 
>   # Silly example
>   sub infix_circumfix_meta_operator:{'->', '<-'} (
>     Code &op,
>     $left, $right,
>   ) {
>     op $left + 1, $right + 1;
>   }
> 
>   say 2 ->+<- 3;  # 7
>   say 2 ->*<- 3;  # 12

That looks approximately right.  I wonder how we specify meta
operators that only work on comparators, or only on assignment forms,
or etc. etc. etc.

Luke

Reply via email to