Talk:Comparison of C Sharp and Java: Difference between revisions

Content deleted Content added
Useerup (talk | contribs)
Useerup (talk | contribs)
Line 37:
This is not simply a matter of the compiler performing an optimization. The usual Java "no unreachable code" rule is suspended in this situation specifically so it can be used for conditional compilation. <ref name="Java Language Specification">{{cite web|url=http://java.sun.com/docs/books/jls/third_edition/html/statements.html#14.21 |title=Java Language Specification" |___location="14.21 Unreachable Statements"}}</ref>
[[User:Spockwithabeard|Spockwithabeard]] ([[User talk:Spockwithabeard|talk]]) 18:25, 13 February 2011 (UTC)
 
That hardly qualifies as [[conditional compilation]], though. It is in fact just an artifact of dead code removal. You cannot - for instance - control the conditional compilation by a compiler switch. Nor can you conditionally define classes, interfaces or members. You cannot conditionally define metadata (annotations). All of these are possible with what is understood as conditional compilation. [[User:Useerup|Useerup]] ([[User talk:Useerup|talk]]) 08:12, 6 March 2011 (UTC)
 
== Instance Initializers ==