Big bug with scope() in nested { }

BCS nowher at spamdrop.uidaho.edu
Sat Sep 23 23:49:02 PDT 2006


This *is* a bug. Has it been reported yet?

<code>
import std.stdio;

void main()
{
	{
		scope(exit) writef("a\n");
	}

	scope(exit) writef("b\n");
}
<code>

output:

a
b
b



More information about the Digitalmars-d-bugs mailing list