Wiki

Changes between Version 9 and Version 10 of AllOfCobraInOnePage

Show
Ignore:
Timestamp:
01/06/14 12:28:07 (10 years ago)
Author:
kobi7
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AllOfCobraInOnePage

    v9 v10  
    4949you can have "trace, assert" wherever you want inside a method 
    5050very useful for debugging are  
    51 trace and accepts multiple variables 
     51trace (also accepts multiple variables) 
     52{{{ 
     53    def linear(a as number, x as number, b as number) as number 
     54        trace a,x,b 
     55        res = a * x + b 
     56        trace res 
     57        return res 
     58 
     59}}} 
    5260assert accepts a boolean, with one expression per line. 
    5361example: