annotate run/r/remove_01.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents 15b52e26c8f4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
569
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
1 // $HeadURL$
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
2 // $Date$
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
3 // $Author$
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
4
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
5 module dstress.run.r.remove_01;
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
6
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
7 class Int{
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
8 this(int i){
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
9 this.i = i;
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
10 }
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
11 int i;
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
12 }
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
13
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
14 int main(){
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
15 Int[char[]] array;
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
16 Int a = new Int(1);
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
17 array["eins"]=a;
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
18
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
19 Int b = new Int(2);
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
20 array["zwei"]=b;
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
21
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
22 Int c = new Int(3);
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
23 array["drei"]=c;
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
24
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
25 assert(("zwei" in array) !is null);
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
26
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
27 array.remove("zwei");
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
28
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
29 assert(("zwei" in array) is null);
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
30 assert(b !is null);
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
31
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
32 return 0;
15b52e26c8f4 updated "delete associativeArray[key]" to "associativeArray.remove(key)"
thomask
parents:
diff changeset
33 }