In LSL/Mono the following script is valid: (Note that I'm passing a string where
key
is expected, and a key where
string
is expected.)
string str = "28c5efb6-fcaa-4ed5-9cf1-a640d1a99272";
key uuid = "28c5efb6-fcaa-4ed5-9cf1-a640d1a99272";
llInstantMessage(str, uuid);
However, in Lua the following script isn't valid:
local str = "28c5efb6-fcaa-4ed5-9cf1-a640d1a99272"
local key = uuid(str)
ll.InstantMessage(str, key)
-- lua_script:3: invalid argument #2 to 'InstantMessage' (string expected, got uuid)
-- [C] function InstantMessage
It's valid to pass a string where
uuid
is expected, but not the other way around.