Talk:Ada (programming language)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

External links modified[edit]

Hello fellow Wikipedians,

I have just modified 5 external links on Ada (programming language). Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:

When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.

As of February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{sourcecheck}} (last update: 15 July 2018).

  • If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
  • If you found an error with any archives or the URLs themselves, you can fix them with this tool.


Cheers.—InternetArchiveBot (Report bug) 09:17, 26 June 2017 (UTC)

External links modified[edit]

Hello fellow Wikipedians,

I have just modified one external link on Ada (programming language). Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:

When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.

As of February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{sourcecheck}} (last update: 15 July 2018).

  • If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
  • If you found an error with any archives or the URLs themselves, you can fix them with this tool.


Cheers.—InternetArchiveBot (Report bug) 05:23, 26 July 2017 (UTC)

Comments and end of line[edit]

"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! Bohan (talk) 15:32, 21 January 2018 (UTC)

Most of the section concerning comments is poorly worded, IMO. Parts of it are obviously incorrect. For example, how can one line comments be nested??? 207.225.245.125 (talk) 05:55, 4 March 2018 (UTC)
You can nest single-line comments by adding a comment marker to the start of the line, so you can comment out lines without worrying about existing comments.
If you're feeding the wrong encoding into your compiler, there's your bug. I don't know how a trailing é (in UTF-8 16#c3# 16#a9#, or misinterpreted as Latin-1, "é") could cause the compiler to not see the end of line, though.--Prosfilaes (talk) 06:48, 4 March 2018 (UTC)
I guess it depends on how "nesting" is defined. I believe it is defined as a block comment within a block comment. While I see your point that an end-of-line comment can be within an end-of-line comment, I have never seen (except in this article) that called "nesting". IMO, the article should just say "Ada has end-of-line comments, started with --, and was intentionally designed not to use block comments", or equivalent wording, and give an example of an Ada comment. All the other text concerning Ada comments (eg, "designed to resemble the English language") is verbiage, IMO. 207.225.245.125 (talk) 17:41, 4 March 2018 (UTC)

Double-dash? or double-hypen?[edit]

The article reads:

A double-dash ("--"), resembling an em dash, denotes comment text.

I suspect that "double-dash" is incorrect, with the correct statement being "double-hyphen".

But I'm not sure, so I will leave this for someone else.

Karl gregory jones (talk) 17:04, 26 September 2018 (UTC)

It's a hyphen-minus, to give it its Unicode name. It is the one and only ASCII character to be a horizontal line at x-height in the character cell. It is the dash in ASCII, among its multitude of duties.--Prosfilaes (talk) 04:17, 28 September 2018 (UTC)