From Clomosy Docs

Revision as of 08:07, 4 November 2024 by ClomosyManager (talk | contribs) (Created page with "In Clomosy projects, the Unit structure is used to organize code into functional and manageable parts. A Unit is a package of code that represents various components and modules within a project. The file extension of a Unit is determined by the syntax of the code it contains: ".tro" for TRObject syntax and ".base" for Base syntax. These file extensions indicate the syntax in which the code is written and help establish the correct modular structure.<br> Some key advant...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In Clomosy projects, the Unit structure is used to organize code into functional and manageable parts. A Unit is a package of code that represents various components and modules within a project. The file extension of a Unit is determined by the syntax of the code it contains: ".tro" for TRObject syntax and ".base" for Base syntax. These file extensions indicate the syntax in which the code is written and help establish the correct modular structure.

Some key advantages of the Unit structure include:

  • Modularity and Reusability: Using Units supports a modular code structure, allowing individual components to be developed and tested independently. The same code sections can be reused in different projects or within the same project.
  • Ease of Maintenance and Readability: The Unit structure makes code more organized and readable, simplifying maintenance and development processes.
  • Organization and Management Efficiency: Projects can contain multiple Units, contributing to better organization and a more manageable code structure.

CREATING A UNIT

To create a unit, you must click on the file icon located in the left menu of the code editor.
This will open the "Units" section. When you click the plus (+) icon to create a new unit, a unit addition dialog box will appear on the screen.

CreatingUnitsV1.0.png