- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I apologize if this question has already been asked and answered before... I would like to know how to prevent future users of my libraries to call someinternal subroutines in these libraries.
For instance, assume that I have two subroutines S_PUBLIC and S_PRIVATE in a library. S_PUBLIC is meant for usage by customer's codes; S_PRIVATE is a utility subroutine that is used by S_PUBLIC but which should not be accessed outside the library.
How would I enforce this?
Thank you!
Olivier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suppose you would put the private subroutine in a module and declare it private.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suppose you would put the private subroutine in a module and declare it private.
Thanks Tim... yes, this solution would work if you only have a limited number of small subroutines. But this is not convenient when you have a lot of large subroutines... the resulting module would be unwieldy for later maintenance, upgrades etc...
Is there another solution?
For instance, I am sure that the MKL libraries refer to many internal subroutines that one cannot access when these libraries are linked in a program. How is it done?
Olivier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, but what about static libraries? There is no equivalent facility provided for static libraries?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page