Carlos Kozuszko wrote:

Hans B. wrote:

As of a couple of releases now, you certainly can compute the address of a CONST parm. You just can't save it.


You mean that is possible to code:

IF %ADDR(ConstParm) = *NULL

but

EVAL pConstParm = %ADDR(ConstParm)

is not valid ?

(Im at V5R1 but deploying to V4R5)

Carlos K.

Also to answer Bob's question, yes, this is true as of V5R1. But it would appear you're out of luck wrt V4R5.


Basically, you can test the address of a CONST parm. But saving it in a basing pointer variable is not allowed to prevent you from changing the parameter via a based variable.

Cheers! Hans



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-2025 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.