Szakáts Viktor wrote:
One possible solution is to allow to compare
pointers to zero using operators (p != 0,
p = 0, p == 0, and even p > 0, p < 0). Comparison
with any other values would return .F., also,
maybe NIL should be also allowed in place of 0,
and we may allow such construct too: IF p ; ? "not null" ; ENDIF
This would mean that a non-NULL pointer would qualify
as .T., non-0, non-NIL and a NULL as .F., 0, NIL on
.prg level.
Hi,
I do not think it's good idea at all. We will want
IF 0,
IF 1,
etc. soon.
I would suggest to fix code:
IF EMPTY(p)
....
Best regards,
Mindaugas
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour