Mercurial > projects > dang
view tests/parser/new_1.d @ 187:08b6ce45b456
Changed the way static arrays are represented
Now uses [3 x i32] rather than [3 x i32]*, and when using constants they are
copied before use.
Also dixed a test or two
author | Anders Halager <halager@gmail.com> |
---|---|
date | Fri, 25 Jul 2008 12:53:58 +0200 |
parents | 7606387b2f0a |
children |
line wrap: on
line source
class A{this(int y){}int x;}struct B {}void main(){B b;long x;A a=new A(x);} int x = 5; int foo(){int y = 5; y = y + x * 5; return y;}