# GR 3.7 Namespace Question

**URL:** <https://www.ruby-forum.com/t/gr-3-7-namespace-question/240840>\
**Category:** GNU Radio\
**Created:** [May 2, 2014, 4:33pm UTC](https://www.ruby-forum.com/t/gr-3-7-namespace-question/240840 "2014-05-02T16:33:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [May 2, 2014, 4:33pm UTC](https://www.ruby-forum.com/t/gr-3-7-namespace-question/240840/1 "2014-05-02T16:33:51Z")

</div>

With the new use of C++ namespaces in the 3.7 API, is  
it possible for an Out-of-tree (OOT) module to create blocks  
that are part of an existing GR namespace?

For instance, if I have a new block that processes digital  
data streams, can I create an OOT module called “digital”  
and add my block to it? Or will this cause a confusion  
at link time, by creating two libraries with the same name?

@(^.^)@ Ed

---

<div class="post-metadata">

**Author:** ![Ed\_Criscuolo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ac8455/32.png) [@Ed\_Criscuolo](https://www.ruby-forum.com/u/Ed_Criscuolo)\
**Post date:** [May 2, 2014, 4:43pm UTC](https://www.ruby-forum.com/t/gr-3-7-namespace-question/240840/2 "2014-05-02T16:43:04Z")

</div>

Hi Ed - Are you asking whether you can reuse the same namespace and  
block name with an OOT module? If so, then so long as you don’t load  
the library containing the GR-provided block(s), you can make it work –  
it’s a C++ issue rather than anything else. That said, it would  
generally be better if you named your block something else to help  
distinguish it from what GR provides – unless what you want is  
intentionally a drop-in replacement for what GR provides. In C++ you  
can add to a namespace if you want to, so long as what you’re adding  
augments, does not conflict with nor try to replace, what’s already  
there. Not sure if this is what you were looking for, but maybe this  
helps? - MLD
