|
From: sjl <sjl_abc@xxxxxxxxxxx>
I have this page bookmarked:
http://www.web400.com/download/ilerpg/subprocedure_parameters2.htm>
Based on that info, CONST is enforced by the compiler ONLY if you are using sub-procedures.
If you are using an external service program or just another program, then using VALUE is the only way to ensure that the parameter will not be changed on return from the call.
Is this a correct summary?
IIRC, it won't even let you get the address of a parameter passed as
const (using %addr), so you can't do direct memory manipulation via a
pointer.
As an Amazon Associate we earn from qualifying purchases.
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.