Bug 1222 – Cannot mixin scope guards

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-05-08T21:36:00Z
Last change time
2014-02-16T15:23:19Z
Assigned to
bugzilla
Creator
jrs7561

Comments

Comment #0 by jrs7561 — 2007-05-08T21:36:48Z
Instead of mixing in the scope guard the line within the gaurd is executed. import std.stdio; int main(char[][] args) { dummy(); return 0; } void dummy() { mixin("scope(exit){writefln(\"should be last\");}"); //printed first writefln("should be first"); //printed last }
Comment #1 by tomas — 2007-05-09T07:03:12Z
*** This bug has been marked as a duplicate of 1025 ***