handling T.min the right way

0ffh spam at frankhirsch.net
Tue Mar 20 14:34:45 PDT 2007


Don Clugston wrote:
> completely different. (For example, I don't know why x++ is legal for 
> floating point types; I think it's just a newbie trap; you have no 
> guarantee that x++ is different to x).

Nope, not at all.
Standard C defines that after "x++" x is incremented by one, exactly -
*even for fp types* !

Happy hackimg,

	0ffh



More information about the Digitalmars-d mailing list