Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Link method off Ring metatable #15

Conversation

Meorawr
Copy link
Contributor

@Meorawr Meorawr commented May 6, 2024

There's a bug in the upgrade logic where existing rings created by older versions of the library never have their metatables upgraded. As such, a load of a version older than v25 followed by v25 or newer will result in a call to a nil 'Link' method on rings.

image

Rather than think through the ramifications of just setmetatable-ing rings again unilaterally on upgrade (though that is probably a perfectly sane idea and should work), for now let's just make the new Link method a local function instead as that's the safer option.

There's a bug in the upgrade logic where existing rings created by older
versions of the library never have their metatables upgraded. As such, a
load of a version older than v25 followed by v25 or newer will result in
a call to a nil 'Link' method on rings.

Rather than think through the ramifications of just setmetatable-ing
rings again unilaterally on upgrade (though that is probably a perfectly
sane idea and should work), for now let's just make the new Link method
a local function instead as that's the safer option.
@Nevcairiel Nevcairiel merged commit 9276198 into WoWUIDev:master May 6, 2024
1 check passed
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