Vic,

Thanks for the clarification. I think we need to review this little more. 
For most operators, f.e:

   LEFT + RIGHT
   LEFT - RIGHT
   LEFT * RIGHT
   LEFT / RIGHT
   LEFT ^ RIGHT

The overloading context is determined the LEFT side of the operator. Also 
for

   ARRAY[INDEX]

But for the $ operator it seem to be a "copy/past" mistake to use the LEFT 
context, because the actual operation (SCAN) is performed on the RIGHT side. 
Therefore IMO we should only have one overloading for $, and it should 
belong to the RIGHT side. Otherwise there's always the possibility of a 
conflict because both the LEFT and the RIGHT might be overloaded yielding a 
conflict.

Opinions?

Ron

--------------------------------------------------
From: "Vicente Guerra" <v...@guerra.com.mx>
Sent: Sunday, October 11, 2009 4:42 PM
To: "Ron Pinkas" <ron.pin...@xharbour.com>
Cc: "xHarbour-Developers List" <xharbour-developers@lists.sourceforge.net>
Subject: Re: [xHarbour-developers] ChangeLog: 2009-10-11 13:55 UTC-0500 
VicenteGuerra

> On Sun, 11 Oct 2009, Ron Pinkas wrote:
>> Many thanks. BTW, why Operator "$$" instead of Operator "$"?
>
>    "$" is already for     object $ any
>    "$$" is now for        any $ object
>
> Atte.
>  Vic
> 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to