Ada Programming/Delimiters/box

From Wikibooks, open books for an open world
Jump to: navigation, search

Ada Lovelace 1838.jpg
The title given to this book is incorrect due to technical limitations. The correct title is Ada Programming/Delimiters/<>.

Contents


The box <> is a placeholder for something undefined.

[edit] In array declaration

Declare an array with bounds known only at runtime.

type Some_Array is (Integer range <>) of Some_Type;

[edit] Generic declaration of a discrete type

generic
   Discrete_Type is (<>);

It means that T must be a discrete type: either an enumeration, a range, or a modular type.

[edit] See also

[edit] Wikibook

[edit] Ada Reference Manual

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export