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 |
rev |
line source |
205
|
1 // @author@ Anders F Björklund <afb@algonet.se>
|
|
2 // @date@ 2004-12-19
|
|
3 // @uri@ news://cq2h5u$2n99$1@digitaldaemon.com
|
|
4 // @url@ nntp://digitalmars.com/digitalmars.D/13868
|
|
5
|
|
6 module dstress.nocompile.associative_array_05;
|
|
7
|
|
8 int main(){
|
|
9 int[char[]] array;
|
|
10 assert(array.length==0);
|
|
11 array["eins"]=1;
|
|
12 assert(array.length==1);
|
|
13 array["zwei"];
|
|
14 assert(array.length==1);
|
|
15 return 0;
|
|
16 }
|
|
17
|