Hi Przemek,
</code>
In Debug console "_Rig" have NUL value.
"R_Per = _Rig + 1" return 1081 error
The 2 function are in separate file.
Now I'll make an easiest small sample.
OK, this is reduce self contain example which illustrates the
problem:
PROC MAIN()
PRIVATE p:="1"
PRIVATE p:="2"
PRIVATE p // Clipper does not reset 'p' to NIL and Harbour does
? p
RETURN
As you can see it has nothing to parameters statement. It's the reason
why self contain examples are such important.
I can make it Clipper compatible but IMHO it's bug in Clipper.
To be precise such code is illegal. You can use in Clipper and Harbour
-a compile time switch and compiler will report errors for all such
duplicated declarations. If it's not enough for you to correct
your code and other developers agree that we should be strict Clipper
compatible here then I'll implement it though my personal opinion
is that it's Clipper anomaly and it will be better to document it
as a difference then replicate.
You can implement this as a HB_C52_STRICT option IMO.
(As an aside, in my last tests Harbour didn't compile
with strict because of some OO compilation problems, but anyway).
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour