integer division with float result

0ffh frank at frankhirsch.youknow.what.todo.net
Sun Nov 18 20:57:58 PST 2007


0ffh wrote:
> precedence foo(float) > foo(int);

Nah, that's bull shite.
We were talking return type overloading, so make that

   precedence float opDiv(int,int) > int opDiv(int,int);

Good thing is, in my code I could adhere to the classic way. =)

regards, frank (sleepy)



More information about the Digitalmars-d mailing list