On Tue, 15 Jan 2008, Saulius Zrelskis wrote: > Now OK, thank you. > One more small bug (macro byref): > proc main() > memvar first > local l := " first" > private first := "FIRST" > ? @&l > inkey(0) > return > Clipper output: > FIRST > Harbour output: > Error BASE/1003 Variable does not exist: first
In some places Clipper strips leading and trailing SPACEs and in some others don't. It also strips TABs. F.e.: proc main() memvar first local l := " "+chr(9)+" first "+chr(9)+" " private first := "FIRST" ? &l ? @&l ? &("fnc "+chr(9)+" ")() ? &(" "+chr(9)+" fnc "+chr(9)+" ")() // Clipper fails here return func fnc() return "[FUNC()]" I'll allow to compile and run above code in Harbour even if Clipper does not accept the last test with macro func call and leading spaces. If you think that we should be strict Clipper compatible here then I can eliminate it but IMHO it's better to keep common behavior for different constructions then replicate Clipper exceptions which do not seems to be design decisions but rather side effects of implementation. Many thanks for your example. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour