Content deleted Content added
syntaxhighlight & fix lint |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1:
{{WikiProject
{{WikiProject
{{WikiProject Software |importance=mid}}
}}
{{Broken anchors|links=
* <nowiki>[[Metadata#Program metadata|metadata]]</nowiki>
Line 58 ⟶ 60:
While Java may be able to do escape analysis more often than C++, it can be used sometimes in C++. For example the following code:
<syntaxhighlight lang="text">
class Bar {
int inc(int i) { return i + 1 }
Line 68 ⟶ 70:
delete b;
}
</syntaxhighlight>
with this code the compiler can know, that b will never be used outside of the function foo. I agree that pointers make escape analysis harder, but under certain conditions the compiler can verify that varibles do not escape a funciton. BTW, I have not programmed in C++ in a long time. Thus I may have made some syntactic errors.
Line 307 ⟶ 309:
If you would like me to provide more information on the talk page, contact [[User:Cyberpower678]] and ask him to program me with more info.
From your friendly hard working bot.—[[User:Cyberbot II|<span style="color:green;font-family:Neuropol">cyberbot II</span>]] [[User talk:Cyberbot II|<sup style="color:green;font-family:arnprior">Notify</sup>]]<sub style="margin-left:-6.1ex;color:green;font-family:arnprior">Online</sub> 18:33, 8 December 2013 (UTC)
== Self-contradictory Information in Summary and Body ==
|