Ron,

On Mon, 12 Oct 2009, Ron Pinkas wrote:
> Please forgive my curiosity, maybe we are on to something here. :-)
> If you knew nothing about xHarbour, what would be your expectation when 
> overloading
>  <Find> $ <Target>
> Which of the 2 arguments should be overloaded?

     We can make it a very hard issue :-)

     Since it depends on how "final program" works, results will
depend about it...

On a safe case,

     METHOD $$( xValue )
     RETURN xValue $ ::real_array

     METHOD $( aArray )
     RETURN ::real_value $ aArray

No matters who is executed first, because both will be... but

     METHOD $$( xValue )
     RETURN ASCAN( {"word1","word2","word3"}, {|x| x $ xValue } ) > 0

Behaviour will be affected according how "xValue" works.

     I kept left-side first because it was already working, so existing
code will works as usual...

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