Project

General

Profile

Ada Style

Here is the place to discuss style programming.

ENX conventions

Narval conventions

  • "simple" types should end with "_Type"
  • array types should end with "_Array" and start with the type name there are based on
  • access types should end with "_Access" and start with the type name they can reference
  • wide class type should end with "_Class"

Examples

type Test_Type is new Integer;
type Test_Array is array (Positive range <>) of Test_Type;
type Test_Access is access all of Test_Type;
type Object_Type is tagged null record;
type Object_Class is new Object_Type'Class;
type Object_Class_Access is access all Object_Type'Class;

Ada Style Guide

One can find "official" style guide at :