Skip to content
Discussion options

You must be logged in to vote

For debugging purposes etc., a module’s non-exported functions can be accessed via the module namespace. In turn, the module namespace is (currently) accessible via

mod_ns = attr(module, 'namespace')

# … and then:
debugonce(mod_ns$fun)

I’m still torn on whether this is supposed to be part of the “public API” of ‘box’, which is why it currently isn’t documented (i.e. it’s — at least in principle — subject to change). However, I can see that some way of accessing the namespace and/or non-exported names is needed. Maybe a new scope access operator (analogous to :::), e.g. mod%:::%fun?

It would be a great topic for a short vignette...

Agreed! But in addition to the above, I’m currently uns…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by mbojan
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