Jump to content
Wikipedia The Free Encyclopedia

Talk:Dead code

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This article is rated Start-class on Wikipedia's content assessment scale.
It is of interest to the following WikiProjects:
WikiProject icon Computing Low‐importance
WikiProject icon This article is within the scope of WikiProject Computing , a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.ComputingWikipedia:WikiProject ComputingTemplate:WikiProject ComputingComputing
Low This article has been rated as Low-importance on the project's importance scale.
WikiProject icon Computer science Mid‐importance
WikiProject icon This article is within the scope of WikiProject Computer science , a collaborative effort to improve the coverage of Computer science related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.Computer scienceWikipedia:WikiProject Computer scienceTemplate:WikiProject Computer scienceComputer science
Mid This article has been rated as Mid-importance on the project's importance scale.
Things you can help WikiProject Computer science with:
WikiProject icon Software : Computing Mid‐importance
WikiProject icon This article is within the scope of WikiProject Software , a collaborative effort to improve the coverage of software on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.SoftwareWikipedia:WikiProject SoftwareTemplate:WikiProject Softwaresoftware
Mid This article has been rated as Mid-importance on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Computing .

Untitled

[edit ]

Vis-a-vis standard and published definitions of dead code, redundant code, and unreachable code,[1] [2] I have updated and changed the articles for dead code, redundant code, and unreachable code. --Dorchard (talk) 22:41, 20 October 2008 (UTC) [reply ]


Inconsistent definitions

[edit ]

In the introduction, the article says that dead code _is_ executed, but that the result is never used. Afterwards, the second example states that the code in the example is never executed, thus dead code. If the definition of dead code does cover both cases, it should be stated in the introduction. 77.188.10.7 (talk) 17:04, 21 November 2010 (UTC) [reply ]


Horrible example

[edit ]

Since the example shown has effects (e.g., behaviour when div-by-zero occurs) this is a *terrible* example since it's not really dead code -- effects of a statement *are observables* -- and cannot be removed by a compiler without affecting program semantics. Dead code only effects execution time, not behaviours, and execution time is (under most semantical notions) considered unobservable.


— Preceding unsigned comment added by 146.148.35.60 (talk) 21:57, 10 November 2016 (UTC) [reply ]

This page is noted as a stub, but I'm not sure there is really anything more to be said than is already here.

Maybe an example or something. Also, please sign your posts. Wouter Lievens 19:00, 13 July 2005 (UTC) [reply ]

Merge?

[edit ]

Is dead code the same thing as unreachable code? Should there be a merge? Deco 18:43, 3 August 2005 (UTC) [reply ]

Removal

[edit ]

I removed this sentence:

... indeed, it is by definition performing no function it is hard to prove a negative

Perhaps it can be reworded? --216.232.210.238 00:39, 28 August 2005 (UTC) [reply ]

Java

[edit ]

If you mention Java compiler, then mention C/C++ compiler (or other) as well. Magicoast (talk) 19:54, 23 January 2011 (UTC) [reply ]

I agree with Magicoast, so there is no need to mention Java separately, all modern compilers are smart enough. --N90p (talk) 16:54, 3 October 2011 (UTC) [reply ]

AltStyle によって変換されたページ (->オリジナル) /