`tovector` does not mandate closing `">"`

Open
#62 6 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from secondlife/slua

All issues in secondlife/slua

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.