Mercurial > projects > ldc
annotate tangotests/c.d @ 195:8baa9b0138e2 trunk
[svn r211] Added readme in phobos dir.
author | lindquist |
---|---|
date | Mon, 12 May 2008 19:08:22 +0200 |
parents | 68a7dd38c03c |
children |
rev | line source |
---|---|
132 | 1 class Foo |
2 { | |
3 int i; | |
4 } | |
5 | |
6 class Bar : Foo | |
7 { | |
8 int j; | |
9 } | |
10 | |
11 void func() | |
12 { | |
13 scope c = new Bar; | |
14 func2(c); | |
15 } | |
16 | |
17 void func2(Bar c) | |
18 { | |
19 c.i = 123; | |
20 } | |
172
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
21 |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
22 void main() |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
23 { |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
24 func(); |
68a7dd38c03c
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
lindquist
parents:
132
diff
changeset
|
25 } |