Remainder wat

Adam D. Ruppe destructionator at gmail.com
Sun Mar 4 11:20:11 PST 2012


What's weird about this? Processors raise
an exception when you ask them to divide by
zero.

Perhaps "Floating point exception" is a weird
message to give, but that's something the operating
system does; it is the default signal handler's
message.


I guess it is also a little weird that it didn't
say "test9.d(2): Error: divide by 0".. the to!uint
seems to trick dmd into not realizing what you are
saying. It catches the literal 1 % 0.



More information about the Digitalmars-d mailing list