× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks, I will do that. I had that PTF SI27418 for my programs for some time now; the PTF Tom noted. Actually SI28620 is the latest, a correction to a MONMSG issue someone on this list encountered.
I also saw the code sample that Tom gave a link for in a prior message, and he had used the same DCL &NULL_PTR *PTR concept to then use that variable in a later COND(&MYPTR *EQ &NULL_PTR) as you suggest.
I must admit, I had not expected that to work; i.e. I expected that compare would cause a MCH3601 too. I had almost even coded up a CMPPTRT without ever having testing the compare to an initialized to *NULL pointer.
I do wish CL had declared constants; I dislike using a variable as a constant, even with an obvious name :-) I guess I could lobby for %addr(*NULL) but I think just some documentation that can be found easily would be sufficient -- I had looked for how to compare a CL pointer to a /null pointer/ without any luck. I should have submitted a Reader Comment card when I did not find anything. :-Q

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.