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

Consider script-defined static methods for the validity of callables #82770

Closed

Conversation

RandomShaper
Copy link
Member

@RandomShaper RandomShaper commented Oct 4, 2023

Supersedes #82767.
Bugsquad edit: Also supersedes #82755.

See #82767 (comment) there for the whole rationale for this PR.

Fixes #79521.

Dear Production team. I've checked this fixes the MRP in the issue, but haven't performed exhaustive smoke testing.

@RandomShaper RandomShaper added bug topic:core topic:gdscript cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release labels Oct 4, 2023
@RandomShaper RandomShaper added this to the 4.2 milestone Oct 4, 2023
@RandomShaper RandomShaper requested a review from a team October 4, 2023 08:38
@RandomShaper RandomShaper requested a review from a team as a code owner October 4, 2023 08:38
core/variant/callable.cpp Outdated Show resolved Hide resolved
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

The rationale makes sense to me.

@RandomShaper
Copy link
Member Author

RandomShaper commented Oct 4, 2023

Counter-superseded by the revised #82767.

@RandomShaper RandomShaper deleted the fix_callable_static branch October 4, 2023 16:07
@akien-mga akien-mga removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Oct 4, 2023
@AThousandShips AThousandShips removed this from the 4.2 milestone Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Callables of static methods are not valid if accessed via the class's name
4 participants