On Tue, 08 Jan 2008, Massimo Renzi (MaticaSrl) wrote:
> Hi all.
> I'm converting Clipper project to Harbour.
> I've that problem.
> In some case Clipper developer has declared PRIVATE variable with the same
> name of PARAMETER variable.
> I know that the better think is to change the code but at moment I need to
> maintain the same code. (great great project)
> Harbour don?t warning me about this when I compile the project.
> When I run the application, ClipperEXE use PARAMETER variable, HarbourEXE
> use PRIVATE.
AFAIK the above is not true and Harbour works exactly like Clipper here.
If not then please send self small contain example and I'll fix it but
I rather do not believe it's possible. This code shows that Harbour works
in the same way as Clipper:
memvar p
proc main()
p1("a"); p2()
proc test(); ?? "", p
proc p1; parameters p; ? p; test(); pp1()
proc pp1; private p:="A"; ? p; test()
proc p2; private p:="b"; ? p; test(); pp2("B")
proc pp2; parameters p; ? p; test()
I think that when you try to reduce the problem to self contain
as small es possible example then you will find the exact reason.
> So ClipperEXE works well, HarbourEXE give me error about use of
> Null value.
Not in situation as you described what above example shows.
> Exist an Harbour compiler option to have full compatibility with Clipper and
> use PARAMETER variables?
AFAIK it is fully compatible here (except some Clipper bugs which were not
replicated intentionally)
best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour