aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-15 21:39:20 +1000
committerDavid Walter Seikel2012-01-15 21:39:20 +1000
commite44fba0d024883d35ef6bbc90b1f7b6875f72ead (patch)
tree3d6fffac144da3609a4ce7b3f1fc5351e7e0211b /LuaSL
parentUpdated float matching rule. (diff)
downloadSledjHamr-e44fba0d024883d35ef6bbc90b1f7b6875f72ead.zip
SledjHamr-e44fba0d024883d35ef6bbc90b1f7b6875f72ead.tar.gz
SledjHamr-e44fba0d024883d35ef6bbc90b1f7b6875f72ead.tar.bz2
SledjHamr-e44fba0d024883d35ef6bbc90b1f7b6875f72ead.tar.xz
Updated comment about modulo.
Diffstat (limited to 'LuaSL')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.c b/LuaSL/src/LuaSL_LSL_tree.c
index 98a03e7..5a082bd 100644
--- a/LuaSL/src/LuaSL_LSL_tree.c
+++ b/LuaSL/src/LuaSL_LSL_tree.c
@@ -419,7 +419,7 @@ Any binary operation involving a float and an integer implicitly casts the integ
419A boolean operation deals with TRUE (1) and FALSE (0). Any non zero value is a TRUE (generally sigh). 419A boolean operation deals with TRUE (1) and FALSE (0). Any non zero value is a TRUE (generally sigh).
420Bitwise operations only apply to integers. The shifts are arithmatic, not logical. Right shifted bits are dropped, left shifts the sign bit. 420Bitwise operations only apply to integers. The shifts are arithmatic, not logical. Right shifted bits are dropped, left shifts the sign bit.
421 421
422integer = integer0 % integer1; // Apparently only applies to integers. 422integer = integer0 % integer1; // Apparently only applies to integers, but works fine on floats in OS.
423string = string0 + string1; // Concatenation. 423string = string0 + string1; // Concatenation.
424list = list0 + list1; // Concatenation. Also works if either is not a list, it's promoted to a list first. 424list = list0 + list1; // Concatenation. Also works if either is not a list, it's promoted to a list first.
425list = (list=[]) + list + ["new_item"]; // Voodoo needed for old LSL, works in Mono but not needed, does not work in OS. Works for strings to. 425list = (list=[]) + list + ["new_item"]; // Voodoo needed for old LSL, works in Mono but not needed, does not work in OS. Works for strings to.