charlang/example/example003.char
Copy
// define a variable before using it var a a = 1 pln(a) // assign a value of another type to a a = "abc" pln(a) // define and assign in one step b := true pln(b) // can not use := again for the same variable // the next line will cause error // b := 1.1