Mercurial > projects > ldc
view tangotests/k.d @ 309:d59c363fccad trunk
[svn r330] Implemented synchronized statements.
Changed the tryfinally handlers to a more generalized EnclosingHandler.
Changed ClassInfoS to be mutable so they can be used as locks.
Added new BB after throw ala return/break etc.
author | lindquist |
---|---|
date | Sat, 28 Jun 2008 11:37:53 +0200 |
parents | 44a95ac7368a |
children |
line wrap: on
line source
interface Inter { int func(); } extern(C) int printf(char*, ...); class InterClass : Inter { int func() { return printf("InterClass.func()\n"); } } alias int delegate() dg_t; void main() { scope c = new InterClass; { Inter i = cast(Inter)c; { dg_t dg = &i.func; { int j = dg(); } } } }