Mercurial > projects > dstress
view run/o/odd_bug_04_C.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 2f10fa84a21b |
children | 20d8ee6523e1 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ John Demme <me@teqdruid.com> // @date@ 2005-12-05 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5755 module dstress.run.o.odd_bug_04_C; abstract class Container(V) { abstract int opApply(int delegate(inout V) dg); } abstract class MutableList(V): Container!(V) { abstract MutableList insertBefore(int i, V item); abstract MutableList append(V item); abstract MutableList append(Container!(V) items); } class AbstractMutableList(V): MutableList!(V) { MutableList!(V) prepend(Container!(V) items) { foreach(V item; items) { insertBefore(0, item); } return this; } } int main(){ AbstractMutableList!(int) paramList; test1(); test1(); return 0; } void test1(){ void testBoolParam() { try { throw new Exception( "uups" ); } catch (Exception o) { } } testBoolParam(); }