Ada Programming/Delimiters/'

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

Ada Lovelace 1838.jpg

The special character ' (called tic) has two meanings. Which of the two options is to be used is determined by context from the compiler.

Character literal[edit]

As delimiter for characters literals:

Plus : constant Character := '+';

Attribute delimiter[edit]

As a separator between an identifier and an attribute:

for Day_Of_Month'Size use 8;

See also[edit]

Wikibook[edit]

Ada Reference Manual[edit]