digitalmars.D.bugs - float implicit casted to integer
- Manfred Nowak <svv1999 hotmail.com> Mar 06 2005
Shouldn't cast float to integer implicitely:
<code>
void main(){
int[10] array;
array[0]= 0;
float f=.2;
array[1..2]= array[f..1.3];
}
</code>
-manfred
Mar 06 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Manfred Nowak schrieb am Sun, 6 Mar 2005 17:55:23 +0000 (UTC):Shouldn't cast float to integer implicitely: <code> void main(){ int[10] array; array[0]= 0; float f=.2; array[1..2]= array[f..1.3]; } </code>
Added to DStress as http://dstress.kuehne.cn/nocompile/slice_10.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCOag93w+/yD4P9tIRAv7XAJ97OJgkKGmbh8Wy816RzHVwrfB80wCgruF/ OvBt8UmzxLXmWtfQtnA9+UA= =0lRH -----END PGP SIGNATURE-----
Mar 17 2005








Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn>