< Ada Programming < Delimiters

Ada. Time-tested, safe and secure.

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

As delimiter for characters literals:

Plus : constant Character := '+';

Attribute delimiter

As a separator between an identifier and an attribute:

for Day_Of_Month'Size use 8;

See also

Wikibook

Ada Reference Manual

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.