Luke Palmer wrote:
The reason we couldn't just decalre it with C<infix:.=> is because its
right hand side is not a usual expression.

Isn't that what macros are for?


    macro infix:.= ($lhs, $rhs) is parsed(/<method_name>/) {
        return Perl::assignment_expression.new(
            lhs => $lhs,
            rhs => Perl::method_call.new(
                term   => $lhs,
                method => $rhs,
            )
        );
    }

TMTOWTDI, I suppose...

--
Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]>
Perl and Parrot hacker

Oceania has always been at war with Eastasia.

Reply via email to