Has anyone found a reliable way to detect overflow in an integer  
(UintXX or IntXX or even integer) ?

something like

        dim v as int64 = 2

        while true
                v = v * 2
        wend

should, at some point, trigger an overflow but all I see it do is  
suddenly turn negative (maybe that's all I can watch for ?)

The other is a line like

        dim inf as Int64 = 1/0

which should trigger a divide by zero or some other catchable error  
but doesn't.

Thoughts ?


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to