Code: Select all
[in]
Code: Select all
[out]
I'm working with Basic (Star Office Basic and Libre Office Basic) and learning to use the MRI (My Reflection and Introspection) tool to view the Methods of a given target.
Where MRI lists Methods I'm seeing that those which require parameters have either an [in], [out], (or possibly even [inout]) prefixing a parameter's type. Here is an example display from MRI:
Here's what I've learned so far:
The UNOIDL (the Unified Network Objects Interface Definition Language) https://www.openoffice.org/udk/common/man/idl.html mentions these as parameter flags, in the "Interface" syntax description:
At the bottom of this https://wiki.openoffice.org/wiki/Docume ... Interfaces page it talks about these flags:<parameter> = "[" in | out | inout "]" <typename> <parametername> The parameter definition begins with the direction flag which is bound with [ ]. Valid flags for the direction are in ( in parameter), out (out parameter) or inout (in and out parameter). The direction follows an identifier for the parameter type and an identifier for the parameter name. More than one parameter definitions are separated by comma.
Unfortunately when I refer to an example IDL reference manual page http://www.openoffice.org/api/docs/comm ... nsAndLines, it does not explain the [out] flag.There are also parameter flags. Each parameter definition begins with one of the direction flags in, out, or inout to specify the use of the parameter:
in specifies that the parameter will be used as an input parameter
only out specifies that the parameter will be used as an output parameter only inout specifies that the parameter will be used as an input and output parameter
These parameter flags do not appear in the API reference. The fact that a parameter is an [out] or [inout] parameter is explained in the method details.