Previous topic | Next topic | Ada Home Page | Index

User-defined Types

Ada programmers are not limited types that are built into the language.

You can define your own types:

type typename is definition

The type can then be used in declarations:

variable : typename

It can be used for parameters:

procedure P (arg : typename) is

It can be used as the return type of a function:

function F (...) return typename is


Previous topic | Next topic | Ada Home Page | Index
c-lokan@adfa.oz.au / 21 Feb 96