Talk:Ada (programming language): Difference between revisions

Content deleted Content added
Bohan (talk | contribs)
Bohan (talk | contribs)
Line 55:
"''Comments stop at end of line, so there is no danger of unclosed comments accidentally voiding whole sections of source code.''"
 
This is actually more dangerous than explicit closing when you use UTF-8 encoding. For example, if the last character on the comment line is a 'é' (e with acute accent), and if the source parser is miss-configured and thinks the encoding is a one -byte encoding (e.g. ISO-8859-1) rather than UTF-8, then the compiler won't see the end of line and treat the next line of code following the comment as a continuation of the comment. So one line of code won't be executed!
[[User:Bohan|Bohan]] ([[User talk:Bohan|talk]]) 15:32, 21 January 2018 (UTC)