Wiki

Changes between Initial Version and Version 1 of TypeInference

Show
Ignore:
Timestamp:
07/23/09 19:45:18 (15 years ago)
Author:
Chuck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TypeInference

    v1 v1  
     1Although you can explicitly declare the type of a local variable, you don't have to: 
     2{{{ 
     3# the long way: 
     4i as int = 0 
     5 
     6# the short, easy way: 
     7i = 0 
     8}}} 
     9The type of the variable on the left is taken to be the type of the expression on the right.