On 22. mars 2017 06:59, ToddAndMargo wrote:
So, unless I specifically declare a variable as a
particular type, I can change its "type" on the fly.

you don't change the type of a variable. instead you use a type which is "broader" and accept any object type.

e.g.: you can assign 123 to an Int, but if you want to assign 0.5 as well, you need to use a variable type Numeric, which accept (is a superclass of) Int and Rat

F

Reply via email to