LSL-PyOptimizer/unit_tests/regression.suite/issue-23.lsl
Sei Lisa d58217ad96 Fix llDumpList2String disaster with string addition
The node containing the separator was not being copied; if it was modified by a later optimization step, the modification propagated to all previous nodes that contained it, causing incorrect results.

Many thanks to @KrsityKu for reporting and providing a repro.

Fixes #23.
2023-02-26 09:46:54 +01:00

11 lines
329 B
Text

default
{
state_entry()
{
string tmp0 = llGetScriptName();
list tmp1 = [llGetOwner(), llGetOwner()];
list tmp2 = [llGetScriptName(), llGetScriptName()];
string encoded = llDumpList2String([tmp0, llList2CSV(tmp1), "Hello", 123, llList2CSV(tmp2)], "|");
llOwnerSay(encoded);
}
}