| 1 | * See: http://cobra-language.com/how-to/UseDynamicTyping/ |
| 2 | * "dynamic" is a keyword in Cobra. |
| 3 | * Any kind of object, whether primitive, value, reference or nil, can be used where dynamic is expected. |
| 4 | * "dynamic" is the default type of untyped object variables, method arguments and properties. |
| 5 | * "dynamic" is *not* the default type for local variables which are statically typed as inferred by the right hand side of an expression ("i = 0" makes "i" an "int"). |
| 6 | * Of course, if the right hand expression is of type "dynamic" then so is the variable. |
| 7 | * You can also cast an expression to dynamic with `<expr> to dynamic`. |
| 8 | * Operations on dynamic expressions are late bound like in Smalltalk and Python. |