Bitwise ~ operator.

This commit is contained in:
Bob Nystrom
2013-12-04 22:09:31 -08:00
parent 7355dd3dc7
commit 6a0d550562
4 changed files with 49 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
var a = "a"
var b = "b"
var c = "c"
// Assignment is right-associative.
a = b = c
io.write(a) // expect: c
io.write(b) // expect: c
io.write(c) // expect: c