Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
intro_example:namespace [2022/05/13 13:20] rajitintro_example:namespace [2025/05/01 11:11] (current) – [Creating a library of building blocks] rajit
Line 86: Line 86:
 } }
 </code> </code>
 +
 +Note the use of the ''export'' keyword. By default, anything defined in a namespace is only visible within the namespace; it must be explicitly ''export''ed for it to be visible outside the namespace.
  
 As shown below, this library is imported in a new ACT file ''adder.act'' to design full adder using logic gates defined in the library. As shown below, this library is imported in a new ACT file ''adder.act'' to design full adder using logic gates defined in the library.