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



On Fri, 8 Aug 2003, Rick Rauterkus wrote:
>
> Ok, after re-reading this, a question comes to mind. If I specify the
> parameter as CONST, I can still call the procedure using a literal,
> expression, or a variable with a different length, correct?

Correct.

> Would it act like VALUE then, creating a copy in the called procedure's
> memory for its use?

Sort of.

If the data type does not match, or a calculation has to be done, etc.
Temporary memory is allocated, and the value is copied into it.   But,
this is done outside of the procedure.  The procedure still receives a
read-only pointer to the data in question, rather than the value of the
data.

Also, remember that you can change a parm passed by value in the
subprocedure (without affecting the caller's copy).   You cannot directly
change a CONST parameter, ever.

Hope that made sense...

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.