diff --git a/index.html b/index.html index 94d7052..7f2bd1a 100644 --- a/index.html +++ b/index.html @@ -223,7 +223,7 @@ llOwnerSay("Program version " STRINGIFY(VERSION)
That's how Firestorm calls an extended syntax for subindex values after individual list elements.
+That's how Firestorm calls an extended syntax for subindex values referencing individual list elements.
mylist = llListReplaceList(mylist, (list)value, index, index);
-However, the implementation includes creating a function that performs the replacement. The function is called lazy_list_set
. It can be user-overriden. If you define a function with this prototype:
However, the implementation includes creating a function that performs the replacement, which prevents the index from being evaluated twice. The function is called lazy_list_set
. It can be user-overriden. If you define a function with this prototype:
list lazy_list_set(list target, integer index, list value)
-which returns the list with the element replaced, then the optimizer will use yours rather than defining it twice.
+which returns the list with the element replaced, then the optimizer will use yours rather than defining it twice. Note that a preprocessor macro won't work in its place.
For compatibility with Firestorm, when the index is greater than the number of elements in the list, the intermediate values are filled with integer zeros. If you don't want that, you may have a reason to override it.