Ada Programming/Keywords/is

< Ada Programming‎ | Keywords

Ada Lovelace 1838.jpg

The keyword is separates the name of an entity from its definition.


In type declarationsEdit

type Day_Of_Month is new range 1 .. 31;

See Ada Programming/Types and Ada Programming/Subtypes.

In subtype declarationsEdit

subtype Day_Of_Febuary is Day_Of_Month range 1 .. 29;

See Ada Programming/Subtypes.

In package declarationsEdit

package My_Package is
   ... -- declarations
end My_Package;

See Ada Programming/Packages.

In procedure and function declarationEdit

procedure My_Procedure is
   ... -- declarations    
   ... -- sentences    
end My_Procedure;

See Ada Programming/Subprograms.

In generic instantiationsEdit

package Day_Of_Month_IO is 
      new Ada.Text_IO.Integer_IO (Num => Day_Of_Month);

See Ada Programming/Generics.

See alsoEdit