Changes

Jump to navigation Jump to search
Line 9: Line 9:  
* You cannot use bitwise operations. The <code>^</code> symbol raises a number to a power or evaluates xor on booleans
 
* You cannot use bitwise operations. The <code>^</code> symbol raises a number to a power or evaluates xor on booleans
 
* You cannot increment or use operations together with assignment, i.e. <code>+=</code> or <code>++</code>. You must write <code>i = i + 1</code>
 
* You cannot increment or use operations together with assignment, i.e. <code>+=</code> or <code>++</code>. You must write <code>i = i + 1</code>
* SIPL does not support the '''new''' keyword, but you can create arrays by writing <code>~[1, 2, 3]</code> or just using the type name, e.g. <code>Color(1,0,0)</code>
+
* SIPL does not support the '''new''' keyword, but you can create arrays by writing <code>~[1, 2, 3]</code> or call a constructor by just using the type name, e.g. <code>Color(1,0,0)</code>
 
* For loops are not supported, however you can write <code>'''foreach''' (element '''in''' list)</code>
 
* For loops are not supported, however you can write <code>'''foreach''' (element '''in''' list)</code>
 
* Enums should not be qualified when assigning, comparing or in function parameters, e.g. you should write '''Female''' instead of '''Human.Gender.Female'''.
 
* Enums should not be qualified when assigning, comparing or in function parameters, e.g. you should write '''Female''' instead of '''Human.Gender.Female'''.

Navigation menu