What is a tick or apostrophe in Hell?

A very simple question, but just by reading the source code and trying to tell what it is for 'and how it differs from.

+5
source share
1 answer

The character is 'used to enter an attribute.

For example, Integer'Lastis the largest type value Integer, and Float'Digitsis the decimal precision of the type Float.

For a complete list of language-defined attributes, see Appendix K of the Ada Reference Guide.

It is also part of the syntax of qualified expressions such as Some_Type'(expression).

. , , , Obj.Comp, Obj , Comp .

; .

: 'x'.

+10

All Articles