Skip to content

How are loaded libraries used? #13

Answered by jingoro2112
matsekberg asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matsekberg
Comment options

Answer selected by jingoro2112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants