mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-03 00:18:20 +00:00
lazylistcompat idea ditched.
This commit is contained in:
parent
87b6002b6c
commit
a6127cf144
2 changed files with 14 additions and 2 deletions
|
@ -1877,6 +1877,14 @@ class parser(object):
|
||||||
# Allow brackets for assignment of list elements e.g. mylist[5]=4
|
# Allow brackets for assignment of list elements e.g. mylist[5]=4
|
||||||
self.lazylists = 'lazylists' in options
|
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
|
# TODO: Enable break/continue
|
||||||
#self.breakcont = 'breakcont' in options
|
#self.breakcont = 'breakcont' in options
|
||||||
|
|
||||||
|
|
8
main.py
8
main.py
|
@ -62,8 +62,12 @@ Options (+ means active by default, - means inactive by default):
|
||||||
hard to debug, but this gets big savings for complex
|
hard to debug, but this gets big savings for complex
|
||||||
scripts.
|
scripts.
|
||||||
lazylists - Support syntax like mylist[index] = 5; rather than using
|
lazylists - Support syntax like mylist[index] = 5; rather than using
|
||||||
llListReplaceList. Not recommended, as it adds a new
|
llListReplaceList. Only assignment supported. The list
|
||||||
function.
|
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])
|
''' % sys.argv[0])
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue