annotate nocompile/associative_array_05.d @ 205:e3c5b1e6f4a3

Tyro <ridimz_at@yahoo.dot.com> 2004-12-28 news:cq2g95$2n45$1@digitaldaemon.com nntp://digitalmars.com/digitalmars.D.bugs/2581
author thomask
date Sun, 19 Dec 2004 11:42:38 +0000
parents
children 1f6cf5ccfbc9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
205
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
1 // @author@ Anders F Björklund <afb@algonet.se>
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
2 // @date@ 2004-12-19
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
3 // @uri@ news://cq2h5u$2n99$1@digitaldaemon.com
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
4 // @url@ nntp://digitalmars.com/digitalmars.D/13868
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
5
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
6 module dstress.nocompile.associative_array_05;
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
7
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
8 int main(){
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
9 int[char[]] array;
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
10 assert(array.length==0);
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
11 array["eins"]=1;
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
12 assert(array.length==1);
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
13 array["zwei"];
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
14 assert(array.length==1);
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
15 return 0;
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
16 }
e3c5b1e6f4a3 Tyro <ridimz_at@yahoo.dot.com>
thomask
parents:
diff changeset
17