Hi Przemek,

Welcome back on board :) I hope you had a nice time.

as .T., non-0, non-NIL and a NULL as .F., 0, NIL on
.prg level.

EMPTY() function can be used for such testes, f.e.:

  return iif( !empty(::nSocket), sqlGetErr(::nSocket), ;
                                 "No connection to server")

It will return TRUE for 0, NIL and NULL pointers.

Yes, the other (IMO important) problem is, that there is
a lot of .prg code to update, if we switch from long to ptr
on the C level. Identifying such code seems to be tedious,
but at least very error prone to me to me. For sure cleaner
though.

Brgds,
Viktor

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

Reply via email to