www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: integer division with float result

Bill Baxter Wrote:
 Of course, but there is no problem to make the / op to
 just always return float, or is there?

void do_something(int x) { ... } void do_something(float x) { ... } do_something(a/b);

answer might be that it should use do_something(float x). But my statement about the compatibility was wrong of course...
Nov 19 2007