...and if you choose to maintain this Clipper compatibility, IMO, it should be via HB_C52_STRICT only!

I think it's a bug in Clipper because...

CASE 1 == n

...will work. In fact, when I used to develop using Clipper, I would always make sure the possible NIL value was on the right side of the expression.


At 08:01 AM 6/24/2008, you wrote:
Hi all,

Here's an interesting one:

--- code
PROC MAIN()

   LOCAL n := NIL

   DO CASE
   CASE n == 1
      ? n, "eq 1"
   OTHERWISE
      ? n, "neq 1"
   ENDCASE

   RETURN
---

--- Clipper 5.2 and 5.3 results
Error BASE/1070  Argument error: ==
Called from MAIN(15)

--- Harbour r8824 result
NIL neq 1

Brgds,
Viktor

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to