On Fri, 12 Mar 2004 10.51, Damian Conway wrote:
> There are also cases where something like:
>
>       $a ||= $b;
>
> or:
>
>       $a += $b;
>
> changes the type of value in $a. Should we flag those too? Currently we do
> warn on the second one if $a can't be cleanly coerced to numeric. Would
> that be enough for C<cmp=> too, perhaps?

That triggered a thought about unary operators.  What about:

  $a !=;        # i.e., $a = ! $a;

Obviously that particular example is a syntax error, but perhaps a more 
verbose "self:" version of same would not be.

-- 
Debbie Pickett
http://www.csse.monash.edu.au/~debbiep
[EMAIL PROTECTED]

Reply via email to