From 23a65d1e39bf6123fd904d5819f03ff5dd36ea4e Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 4 Feb 2012 22:48:27 +1000 Subject: Comment new problem - dot operator not mixing too well with unplain assignments. --- LuaSL/src/LuaSL_compile.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'LuaSL/src/LuaSL_compile.c') diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index cd8494a..610753a 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -1,25 +1,15 @@ #include "LuaSL.h" -/* TODO - -Bit of a problem, but I think it will go away once llGetSubString() is implemented. -The problem is that Lua can't convert the string "0x" to a number, though it's fine with "0x0". -In LSL any string that does not represent a number gets converted to 0 by a typecast. +/* TODO - problem dejour -In other cases the LSL code is typecasting a string to an integer, but Lua can't coz it's not a real number in the string. + RefPos.z += (float) Zoffset / 100.; -Sooo, should actually implement that typecast. +Gets converted to - -function --[[integer]] channel() - return --[[(integer)]] ("0x" .. _LSL.llGetSubString( --[[(string)]] _LSL.llGetKey(), -4, -1)); -end + RefPos.z --[[+=]] = RefPos + --[[float]] Zoffset/100.; -function setBalls( --[[string]] cmd) - local --[[integer]] ch=channel(); - _LSL.llSay(ch+ix, cmd); -end */ - static LSL_Leaf *evaluateFloatToken(LSL_Leaf *content, LSL_Leaf *left, LSL_Leaf *right); static LSL_Leaf *evaluateIntegerToken(LSL_Leaf *content, LSL_Leaf *left, LSL_Leaf *right); static LSL_Leaf *evaluateNoToken(LSL_Leaf *content, LSL_Leaf *left, LSL_Leaf *right); -- cgit v1.1