How are loaded libraries used? #13
-
For example messages. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
So... yes and no. Mostly yes, but technically no. Yes in the sense that I adopted that convention, but no in the sense that it's only a convention and wrench does not have any explicit support for that nomenclature or namespaces as such. Let me explain... no there is too much , let me sum up: The '::' convention is used in wrench to denote "global" scope, in order to guarantee no conflict with existing functions I have library calls use the '::' as part of it's name. But that support is brute force, functions are registered like this: `wr_registerLibraryFunction( w, "msg::write", wr_mboxWrite ); In code, The wrench parser will recognize the '::' and knows to search ONLY global space for the symbol, but that's as far as it's supported. If you registered the library function as: `wr_registerLibraryFunction( w, "msg_write", wr_mboxWrite ); Or some other plausible name, it would work identically. |
Beta Was this translation helpful? Give feedback.
So... yes and no.
Mostly yes, but technically no.
Yes in the sense that I adopted that convention, but no in the sense that it's only a convention and wrench does not have any explicit support for that nomenclature or namespaces as such.
Let me explain... no there is too much , let me sum up:
The '::' convention is used in wrench to denote "global" scope, in order to guarantee no conflict with existing functions I have library calls use the '::' as part of it's name.
But that support is brute force, functions are registered like this:
`wr_registerLibraryFunction( w, "msg::write", wr_mboxWrite );
In code, The wrench parser will recognize the '::' and knows to search ONLY global space for t…