Skip to content

Add qualifier for multilevel methods #107604

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jun 16, 2025

Alternative to #107564
image
This adds a hard-coded qualifier that can be used to mark multilevel methods.

It's hard-coded, because the multilevel logic exists only in GDCLASS, AFAIK it's not even a thing in any language. We rarely add multilevel methods (last one was almost 3 years ago), so adding the qualifier manually is fine in this case.

_property_can_revert() needs to be double-checked, it is multilevel in core, so it's weird it's not in scripts.
_validate_property() is multilevel only in core, which is likely a bug.

@KoBeWi KoBeWi added this to the 4.x milestone Jun 16, 2025
@KoBeWi KoBeWi requested a review from a team as a code owner June 16, 2025 18:41
Copy link
Member

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

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

The need for this new qualifier should be discussed. I personally think it's overkill and a bit difficult to spot. It's also the only qualifier that needs to be added manually. If there were even more methods that are an exception to the norm, I can see this making more sense.

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.

2 participants