[Issue 12442] inefficient code with scope(exit)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 23 02:01:44 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12442
--- Comment #1 from Rainer Schuetze <r.sagitario at gmx.de> 2014-03-23 02:01:32 PDT ---
The same happens with RAII:
struct SCount
{
this(bool) nothrow { recurse++; }
~this() nothrow { recurse--; }
}
uint wrapper_raii() nothrow
{
SCount sc = SCount(true);
return fun();
}
produces almost the same code as scope(exit).
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list