Content deleted Content added
→Comments and end of line: Reply |
|||
Line 51:
:: 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. [[Special:Contributions/207.225.245.125|207.225.245.125]] ([[User talk:207.225.245.125|talk]]) 17:41, 4 March 2018 (UTC)
:"While clearly denoting disabled code with a column of repeated "--" down the page, this renders the experimental dis/re-enablement of large blocks a more drawn out process."
:Disabling large segments of code is trivial
:== declare a boolean in the relevant unit
:Disabled : Boolean;
:== Set that boolean to true or false as required
:Disabled := true;
:== wrap your block of code to be selectively disabled in an if statement.
:if not Disabled then
:end if;
:[[Special:Contributions/86.14.138.8|86.14.138.8]] ([[User talk:86.14.138.8|talk]]) 19:39, 23 October 2023 (UTC)
== Double-dash? or double-hypen? ==
|