Hi:
I have read the PROGRESS documentation regarding PRIVATE procedures and all I found was this:
http://communities.progress.com/pcom/docs/DOC-15896 "Miscellaneous New Features PRIVATE Keyword In Version 9, if a procedure defines internal procedures and user-defined functions with the PRIVATE option, other procedures cannot invoke them, and they do not appear on the list provided by the defining procedure's INTERNAL-ENTRIES attribute or GET-SIGNATURE method. If another procedure tries to invoke an internal procedure or user-defined function defined with the PRIVATE option, Progress responds as if the internal procedure or user-defined function does not exist. A procedure might define internal procedures and user-defined functions with the PRIVATE option if, for example, they represent encapsulated objects that other procedures must not invoke directly."
"
"
Now, what I would like to know is:
Is there an improvement to the performance of the programs that include procedures with this keyword versus an identical procedure with no PRIVATE keyword present? This improvement being either speed, or less memory usage or both or any other advantage not mentioned already in the documentation I found?
Thanks in advance
Hugo Alberto
I can't imagine there being any impact on performance whatsoever. It is just an early, very basic way of trying to control the interface which a PP presents to the world. A private procedure is simply one that shouldn't be run from outside because its purpose is supporting other procedures in that PP. In many cases, they depend on context not available outside the PP. It's primary utility is helping the programmer to distinquish between what is exposed for use by others and what is not.