Ada Programming/Delimiters/'
< Ada Programming < DelimitersComputing » Computer Science » Computer Programming » Ada Programming

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.