Thread overview
[Issue 1025] New: mixin("scope(exit) call();"); is broken
Mar 05, 2007
d-bugmail
Mar 08, 2007
d-bugmail
May 09, 2007
d-bugmail
Mar 30, 2009
d-bugmail
March 05, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1025

           Summary: mixin("scope(exit) call();"); is broken
           Product: D
           Version: 1.007
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: tomas@famolsen.dk


import std.stdio;

void main()
{
    mixin("writefln('A');");
    mixin("scope(exit) writefln('C');");
    mixin("writefln('B');");
}

// outputs ACB


-- 

March 08, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1025





------- Comment #1 from thomas-dloop@kuehne.cn  2007-03-08 10:30 -------
Added to DStress as http://dstress.kuehne.cn/run/m/mixin_27_A.d http://dstress.kuehne.cn/run/m/mixin_27_B.d http://dstress.kuehne.cn/run/m/mixin_27_C.d http://dstress.kuehne.cn/run/m/mixin_27_D.d http://dstress.kuehne.cn/run/m/mixin_27_E.d


-- 

May 09, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1025


tomas@famolsen.dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jrs7561@louisiana.edu




------- Comment #2 from tomas@famolsen.dk  2007-05-09 07:03 -------
*** Bug 1222 has been marked as a duplicate of this bug. ***


-- 

March 30, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1025


unknown@simplemachines.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |unknown@simplemachines.org
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #3 from unknown@simplemachines.org  2009-03-29 23:58 -------
As of DMD 1.041 and 2.026, this outputs "ABC".

-[Unknown]


--