scope(exit) without exception handling?
Jacob Carlborg
doob at me.com
Wed May 16 07:02:43 PDT 2012
On 2012-05-16 15:10, Steven Schveighoffer wrote:
> I don't see exception handling in the generated code (at least I don't
> see the _d_local_unwind2), I wonder a) if this is more efficient than
> scope(exit), and b) if so, why can't the compiler do this automatically?
I'm guessing because constructors and destructors hadn't been introduced
for structs when the scope-statement was.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list