Skip to content

Allow ruleset tables to be passed to legacy functions.#87

Merged
Rider-Linden merged 5 commits into
mainfrom
rider/ruleset_adjustments
Jul 14, 2026
Merged

Allow ruleset tables to be passed to legacy functions.#87
Rider-Linden merged 5 commits into
mainfrom
rider/ruleset_adjustments

Conversation

@Rider-Linden

@Rider-Linden Rider-Linden commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Allows the ruleset tables to be use in the legacy functions, and removes llhttp:request

Issue secondlife/lsl-definitions#175

related PRs:
secondlife/lsl-definitions#177
https://github.com/secondlife/server/pull/2574

@HaroldCindy HaroldCindy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments, general idea looks good but the tests could be made more concise

Comment thread tests/conformance/ruleset_coerce.lua Outdated
Comment thread tests/SLConformance.test.cpp Outdated
Comment thread VM/src/llruleset_builder.cpp Outdated
Comment thread VM/src/llruleset_builder.cpp Outdated
slua_ruleset_serialize(L, params_idx, def);

// Replace original table with serialized list
lua_replace(L, params_idx);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this function allows pseudo-indices, automatically calling lua_replace() on params_idx internally may not always be what you want (for ex. with upvalues and whatnot.) Maybe not a problem in practice but something to keep in mind.

@HaroldCindy HaroldCindy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just chop off the comments that are likely to get stale

Comment thread VM/src/llruleset_builder.cpp Outdated
#include "llsl.h"
#include "llruleset_builder.h"

#include "lapi.h" // luaA_toobject, luaA_pushobject

@HaroldCindy HaroldCindy Jul 14, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments aren't necessary or idiomatic, one can see on mouse hover where a symbol is defined.

@Rider-Linden Rider-Linden merged commit 4029a66 into main Jul 14, 2026
8 checks passed
@Rider-Linden Rider-Linden deleted the rider/ruleset_adjustments branch July 14, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants