Skip to content

Adding info to constants#182

Merged
monty-linden merged 2 commits into
secondlife:mainfrom
Suzanna-Linn:Suzanna-Linn-constant-adding-info
Jul 13, 2026
Merged

Adding info to constants#182
monty-linden merged 2 commits into
secondlife:mainfrom
Suzanna-Linn:Suzanna-Linn-constant-adding-info

Conversation

@Suzanna-Linn

Copy link
Copy Markdown
Contributor

This PR replaces draft #167.

After commenting in #160, I'm adding these fields to the constants that have associated values:

  • in constants with one associated value:
    • value-type: same as Rulesets for table-based function params #143.
    • range: array [ start, end ].
    • default: default value.
    • enum: category of constants, or group of categories.
    • details: anything else in the Wiki table.
    • access:
      • "arg": the value is always an argument.
      • "read": it's only used when reading.
      • "write": it's only used when writing.
      • "read/write": default, not used in the file.
    • values: an array when there is more than one associated value (or only one, but with an informative name):
      • name
      • value-type
      • range
      • default
      • enum
      • details
      • access

JSON file with the added fields: https://suzanna-linn.github.io/slua/wiki-constants-values.html

LSL definitions browser with the updated YAML file: https://suzanna-linn.github.io/slua/reference-lsl-definitions

@Suzanna-Linn Suzanna-Linn changed the title Suzanna linn constant adding info Adding info to constants Jul 13, 2026
@monty-linden monty-linden merged commit 6300241 into secondlife:main Jul 13, 2026
5 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants