to jest z internetowym Ada podręcznika: http://www.adaic.org/resources/add_content/standards/05rm/RM.pdf (rozdział 2,3)Ada literałów numerycznych i podkreślają
A decimal_literal is a numeric_literal in the conventional decimal notation (that is, the base is ten).
Syntax
decimal_literal ::= numeral [.numeral] [exponent]
**numeral ::= digit {[underline] digit}**
exponent ::= E [+] numeral | E – numeral
digit ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
An exponent for an integer literal shall not have a minus sign.
Static Semantics
**An underline character in a numeric_literal does not affect its meaning.** The letter E of an exponent can be
written either in lower case or in upper case, with the same meaning.
Jeśli robię
my_literal ::= 123_456;
co robi podkreślenia (podkreślenie) oznacza? Mówi, że nie ma to wpływu na znaczenie. Więc po co to jest? Jestem pewna, że istnieje prosta odpowiedź, ale czytanie i ponowna próba odpowiedzi nie pomogły mi.
Czy to w całości dla czytelności programisty? –
Tak. Ada miała łatwość konserwacji jako cel projektu. – Shark8
Ty * musisz * zdawać sobie sprawę, że dwa kolejne podkreślenia są błędem. [IIRC] – Shark8