annotate run/associative_array_09.d @ 370:2e7e260384a4
AAs with float index
Ben Hinkle <ben.hinkle@gmail.com>
2005-03-25
news:d247b2$mr$1@digitaldaemon.com
author |
thomask |
date |
Sat, 26 Mar 2005 18:36:04 +0000 |
parents |
|
children |
b8c0195059d9 |
rev |
line source |
370
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Ben Hinkle <ben.hinkle@gmail.com>
|
|
6 // @date@ 2005-03-25
|
|
7 // @uri@ news:d247b2$mr$1@digitaldaemon.com
|
|
8
|
|
9 module dstress.run.associative_array_09;
|
|
10
|
|
11 int main() {
|
|
12 int[float] x;
|
|
13 float d=22;
|
|
14 x[d] = 44;
|
|
15 assert( x[d] == 44 );
|
|
16 return 0;
|
|
17 } |