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

[3.x] Add GDScript warning when internal native C++ callback is overridden via script #42968

Closed
wants to merge 1 commit into from
Closed

[3.x] Add GDScript warning when internal native C++ callback is overridden via script #42968

wants to merge 1 commit into from

Conversation

Xrayez
Copy link
Contributor

@Xrayez Xrayez commented Oct 21, 2020

Closes #42755.

This introduces a new type of GDScript warning in 3.2 for when a user attempts to override an internal, non-virtual, private callback prefixed with _ in C++ code, which are hidden by default in the documentation and the editor, but nonetheless still accessible through the GDScript code:

gdscript_warn_internal_callback

This may be a problem in 4.0 as well, so upon pre-approval, I could make another PR for the master branch.

P.S. This is my first major endeavor at tinkering with GDScript parser code, but this seems to be functional already.

@Xrayez Xrayez changed the title [3.2] Add GDScript warning for overriding internal callback [3.2] Add GDScript warning when internal native C++ callback is overridden via script Oct 21, 2020
@akien-mga akien-mga requested a review from vnen October 21, 2020 17:42
@Xrayez
Copy link
Contributor Author

Xrayez commented Oct 25, 2020

This can potentially reveal problems with methods which were not exposed as virtual, such as #42093.

@Calinou Calinou added this to the 3.2 milestone Jan 5, 2021
Base automatically changed from 3.2 to 3.x March 16, 2021 11:11
@aaronfranke aaronfranke modified the milestones: 3.2, 3.3 Mar 16, 2021
@akien-mga akien-mga changed the title [3.2] Add GDScript warning when internal native C++ callback is overridden via script [3.x] Add GDScript warning when internal native C++ callback is overridden via script Mar 26, 2021
@akien-mga akien-mga modified the milestones: 3.3, 3.4 Mar 26, 2021
@Xrayez Xrayez closed this Jun 25, 2021
@Xrayez Xrayez reopened this Dec 24, 2021
@Calinou Calinou modified the milestones: 3.4, 3.5 Dec 24, 2021
@akien-mga akien-mga modified the milestones: 3.5, 3.x Jul 2, 2022
@akien-mga
Copy link
Member

Closing as this contributor can no longer update this further.

@akien-mga akien-mga closed this Aug 5, 2022
@YuriSizov YuriSizov removed this from the 3.x milestone Dec 2, 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.

6 participants