User loginNavigation |
Is Integer wrapping an exceptional condition?Is there any language that throws an exception when an integer wraps around? I am curious, why even strongly typed languages like OCaml allow integers to wrap around. Why isn't integer wrapping considered an inconsistent state? Is lack of support from hardware the reason why it is not implemented? (I think we can use the overflow flag to detect integer wrapping. Is this the right way to do it?) Any pointers (like papers or articles) on this topic will be helpful. By mansu at 2007-05-02 10:25 | LtU Forum | previous forum topic | next forum topic | other blogs | 12867 reads
|
Browse archives
Active forum topics
|
Recent comments
9 weeks 5 days ago
14 weeks 4 hours ago
15 weeks 4 days ago
15 weeks 4 days ago
18 weeks 2 days ago
22 weeks 6 days ago
22 weeks 6 days ago
23 weeks 2 days ago
23 weeks 2 days ago
26 weeks 1 day ago