Deprecate the LSL list functions with a direct replacement#72
Open
tapple wants to merge 5 commits intosecondlife:mainfrom
Open
Deprecate the LSL list functions with a direct replacement#72tapple wants to merge 5 commits intosecondlife:mainfrom
tapple wants to merge 5 commits intosecondlife:mainfrom
Conversation
tapple
commented
Mar 13, 2026
generated/slua_default.d.luau
Outdated
| @@ -730,13 +730,13 @@ declare ll: { | |||
| List2Float: (ListVariable: list, Index: number) -> number, | |||
| List2Integer: (ListVariable: list, Index: number) -> number, | |||
Contributor
Author
There was a problem hiding this comment.
I avoided marking ll.List2Integer and ll.List2Float as deprecated due to https://feedback.secondlife.com/slua-alpha/p/slua-functions-to-replicate-lsls-integer-and-float-casts
Contributor
Author
There was a problem hiding this comment.
After further testing, I decided to go ahead and deprecate them: e6aa192
generated/slua_default.d.luau
Outdated
| GetLinkSitFlags: (LinkNumber: number) -> number, | ||
| GetListEntryType: (ListVariable: list, Index: number) -> number, | ||
| GetListLength: (ListVariable: list) -> number, | ||
| GetListLength: @[deprecated {use='#', reason='Metatable support.'}](ListVariable: list) -> number, |
| List2String: (ListVariable: list, Index: number) -> string, | ||
| List2Vector: (ListVariable: list, Index: number) -> vector, | ||
| ListFindList: (ListVariable: list, Find: list) -> number?, | ||
| List2Rot: @[deprecated {use='[]'}](ListVariable: list, Index: number) -> quaternion, |
Contributor
Author
There was a problem hiding this comment.
ll.List2Rot does not convert strings to quaternions:
print(ll.List2Rot({"<1, 2, 3, 4>"}, 1)) -- <0, 0, 0, 1>
| ListFindList: (ListVariable: list, Find: list) -> number?, | ||
| List2Rot: @[deprecated {use='[]'}](ListVariable: list, Index: number) -> quaternion, | ||
| List2String: @[deprecated {reason="Use '[]' and 'tostring' instead."}](ListVariable: list, Index: number) -> string, | ||
| List2Vector: @[deprecated {use='[]'}](ListVariable: list, Index: number) -> vector, |
Contributor
Author
There was a problem hiding this comment.
ll.List2Vector does not convert strings to vectors:
print(ll.List2Vector({"<1, 2, 3>"}, 1)) -- <0, 0, 0>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.