|
In computer programming, source code may be disabled by commenting out any given section of the code. This method is available in programming languages, markup languages, configuration files and other media that support comments. The term is also applied to any of various other means of temporarily disabling or removing source code from a computer program.[1]
PurposeA programmer or author of code may use this approach when a subsection of code is redundant or obsolete, but is being left in the source to make the intent of the active code clearer, or when a piece of code is faulty and a temporary bypass is needed in order to debug another part of the code. Problems with usageCommenting out can be onerous in languages that do not have block comments, and has its own hazards in certain languages that do have block comments. For example, in C, the comment delimiters may not be nested, so Notes and references
External links |
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net