`tovector` does not mandate closing `">"`
@HaroldCindy is already working on this.
Since Mar 24, 2026.
Assessment
This issue has not been assessed yet.
Description
There's an inconsistency here:
> tovector("<2, 3, 3")
<2, 3, 3>
> lljson.sldecode('"!v<2, 3, 3"')
stdin:1: malformed tagged vector: !v<2, 3, 3
stack backtrace:
[C] function sldecode
stdin:1
However, I'm hesitant to fix this (by making tovector return nil). I feel like maybe tovector should stay a little more lenient than !v, since it's for reading typo-prone notecards
tovector is consistent with (vector) on this point:
llOwnerSay((string)((vector)"<2, 3, 3")); // <2,3,3>
But it's stricter on other points:
> tovector("<2, 3, 3,xx>e1")
nil
llOwnerSay((string)((vector)"<2, 3, 3,xx>e1>")); // <2,3,3>
Originally posted by @tapple in https://github.com/secondlife/slua/pull/61#discussion_r2966891286
- Dominant language
- C++
- Stars
- 17
- Forks
- 10
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from secondlife/slua
-
documentation team:server
secondlife/slua#91 · 1 assignee ·
-
enhancement
secondlife/slua#25 · 1 assignee ·
-
enhancement
secondlife/slua#24 · 2 comments · 1 assignee ·
-
enhancement
secondlife/slua#22 · 1 assignee ·
-
enhancement
secondlife/slua#19 · 1 assignee ·
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 88/100
QuantStack/git2cpp#187 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
mlcommons/mobile_app_open#1182 ·
-
Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/winget-cli#6547 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·