On Thu, 02 Jul 2009, Alexander S.Kresin wrote:

Hi,

> Maybe, this issue was discussed already, but ...
> This code gives an error with Harbour, but works with Clipper:
> PROCEDURE main
> PRIVATE arr[10], r
>    arr[1] := "OO"
>    r = 'arr[1]'
>    &r += '*'    // Runtime "Syntax error: &" with Harbour
>    ? arr[1], r
> Return Nil
> Is this error or a feature :) ?

Bug. In Harbour when some optimizations are enabled
only pure symbols can be used as macro value in left side
of <op>= or as argument of ++ and -- operators.
With -kc Clipper compatible code is generated so thew above
example will work.
I'll analyze deeper the problem and I'll fix it to make Harbour
fully Clipper compatible. Probably in next week.

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to