Mercurial > projects > ldc
view test/foreach3.d @ 333:f7190d9eb70c trunk
[svn r354] Fix the regressions between [346] and [353] by making constructors and destructors outside classes fatal errors.
Fix tests makefile and add minimize to gc.d.
author | ChristianK |
---|---|
date | Sat, 12 Jul 2008 09:23:14 +0200 |
parents | d9d5d59873d8 |
children |
line wrap: on
line source
module foreach3; extern(C) int printf(char*, ...); void main() { static str = ['h','e','l','l','o']; foreach(i,v; str) { printf("%c",v); } printf("\n"); foreach(i,v; str) { v++; } foreach(i,v; str) { printf("%c",v); } printf("\n"); }