Wiki

Changes between Version 4 and Version 5 of Contracts

Show
Ignore:
Timestamp:
10/23/10 12:32:01 (14 years ago)
Author:
blubb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Contracts

    v4 v5  
    1010The exception message shows the value of each subexpression in the condition, just like the Cobra 
    1111'assert' exception. 
    12   For example, 'x > y' failing will show the values of 'x' and 'y'. 
     12For example, 'x > y' failing will show the values of 'x' and 'y': 
     13 
     14{{{ 
     15Unhandled Exception: Cobra.Lang.RequireException:  
     16sourceSite = demo.cobra:5 in Demo.subtract for object Demo 
     17info       = nil 
     18this       = Demo 
     19    (x > y) = false 
     20        x = 3 
     21        y = 6 
     22}}} 
    1323 
    1424You can turn off contracts when building shipping software in order to boost