annotate compile/o/opMod_03_A.d @ 1625:4e908dadd51c

modulo operations with complex numbers are allowed
author Moritz Warning <moritzwarning@web.de>
date Thu, 06 Jan 2011 14:59:13 +0100
parents nocompile/o/opMod_03_A.d@daef239f37cf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1235
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
1 // $HeadURL$
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
2 // $Date$
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
3 // $Author$
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
4
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
5 // @author@ Matti Niemenmaa <deewiant@gmail.com>
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
6 // @date@ 2006-11-18
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1235
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=551
1235
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
8 // @desc@ [Issue 551] New: Modulo operator works with imaginary and complex operands
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
9
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
10 // __DSTRESS_ELINE__ 18
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
11
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
12 module dstress.nocompile.o.opMod_03_A;
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
13
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
14 void foo(){
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
15 ifloat a;
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
16 ifloat b;
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
17
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
18 auto x = a % b;
3a8bc4294d51 [Issue 551] New: Modulo operator works with imaginary and complex operands
thomask
parents:
diff changeset
19 }