lazylistcompat idea ditched.

This commit is contained in:
Sei Lisa 2015-03-04 00:40:07 +01:00
parent 87b6002b6c
commit a6127cf144
2 changed files with 14 additions and 2 deletions

View file

@ -1877,6 +1877,14 @@ class parser(object):
# Allow brackets for assignment of list elements e.g. mylist[5]=4
self.lazylists = 'lazylists' in options
# This was once an idea, but it has been discarded because
# llListReplaceList requires the argument to be evaluated twice,
# so the function is unavoidable. Consider e.g. L[x++] = 3 expanded to
# L = llListReplaceList(L, [3], x++, x++).
# # Extend the list with integer zeros when lazylists is active and the
# # index is greater than the end of the list.
# self.lazylistcompat = 'lazylistcompat' in options
# TODO: Enable break/continue
#self.breakcont = 'breakcont' in options

View file

@ -62,8 +62,12 @@ Options (+ means active by default, - means inactive by default):
hard to debug, but this gets big savings for complex
scripts.
lazylists - Support syntax like mylist[index] = 5; rather than using
llListReplaceList. Not recommended, as it adds a new
function.
llListReplaceList. Only assignment supported. The list
is extended when the argument is greater than the list
length, by inserting integer zeros. This is implemented
for compatibility with Firestorm, but its use is not
recommended, as it adds a new function, wasting memory
against the very spirit of this program.
''' % sys.argv[0])
return 1