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



Hi Larry -

Here's the rub - to export the getter method I would flag it as EXPORTable
and compile the module. I'd then explicitly export the getter method from
the service program object using binder language. BUT this is now available
to ANY program that binds to the utility service program. There is no way
(that I know of) that the utility service program can determine whether it
should export or not.

If you use /copy members for your procedure prototypes, you could create an exported procedure but not include its prototype in the /copy member. Any program or service program that wanted to use the procedure would have to code the prototype explicitly.


That isn't an absolute answer since the prototype could be coded in any program, but it would stop casual use of the procedure.

If you really wanted to nail it down, you could have the getter procedure check the stack and issue a halt if the calling procedure isn't on an approved list.

--
Ken
http://www.ke9nr.net/
Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.