# New block style instructions doubt

**URL:** <https://www.ruby-forum.com/t/new-block-style-instructions-doubt/229018>\
**Category:** GNU Radio\
**Created:** [May 16, 2013, 1:31pm UTC](https://www.ruby-forum.com/t/new-block-style-instructions-doubt/229018 "2013-05-16T13:31:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nemanja\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7bcc69/32.png) [@Nemanja\_S](https://www.ruby-forum.com/u/Nemanja_S)\
**Post date:** [May 16, 2013, 1:31pm UTC](https://www.ruby-forum.com/t/new-block-style-instructions-doubt/229018/1 "2013-05-16T13:31:48Z")

</div>

Hi all guys,

I have just been reading instructions for makin new fashion signal  
processing block, and I have a certain doubt:

In the following link:  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide](http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide)

you can see for example this in public header file:

namespace gr {  
namespace foo {

```
class FOO_API bar : virtual public gr_sync_block

```

and in this page:  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/Move\_3-6\_to\_3-7](http://gnuradio.org/redmine/projects/gnuradio/wiki/Move_3-6_to_3-7)

it is written:

class MODNAME\_API classname : public gr\_sync\_block

becomes

class MODNAME\_API classname : public gr::sync\_block

Does this mean that header file in the first link should contain:

namespace gr {  
namespace foo {

```
class FOO_API bar : virtual public sync_block

```

If I am right, than maybe the tutorial page should be changed.

Best  
Nemanja

---

<div class="post-metadata">

**Author:** ![Nemanja\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7bcc69/32.png) [@Nemanja\_S](https://www.ruby-forum.com/u/Nemanja_S)\
**Post date:** [May 16, 2013, 3:15pm UTC](https://www.ruby-forum.com/t/new-block-style-instructions-doubt/229018/2 "2013-05-16T15:15:50Z")

</div>

Nemanja,

first note that we’re in the middle of moving to 3.7.  
So things will definitely be out of sync.

However, those two docs describe two different things:

On Thu, May 16, 2013 at 01:30:43PM +0200, Nemanja S. wrote:

> In the following link:  
> [http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide](http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide)
> 
> […]

This describes how to code blocks, and is valid for 3.6.

> and in this page:  
> [http://gnuradio.org/redmine/projects/gnuradio/wiki/Move\_3-6\_to\_3-7](http://gnuradio.org/redmine/projects/gnuradio/wiki/Move_3-6_to_3-7)
> 
> […]

This describes what you have to do if you have old code, and want it to  
be compatible with 3.7.

> If I am right, than maybe the tutorial page should be changed.

There will be changes, yes. But 3.7 is still under heavy development,  
and before it is not finalized, no need to update the docs. Only if you  
are operating on next, this would affect you–in this case, we assume  
you know what you’re doing.  
Still, thanks for proof-reading the docs. My philosophy here is that  
outdated docs are worse than none, but the 3.6 series not yet outdated.

MB

–  
Karlsruhe Institute of Technology (KIT)  
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.  
Research Associate

Kaiserstraße 12  
Building 05.01  
76131 Karlsruhe

Phone: +49 721 608-43790  
Fax: +49 721 608-46071  
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and  
National Laboratory of the Helmholtz Association
