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

Mark final (non-derivable / non-subclassable) classes #348

Open
selurvedu opened this issue Dec 20, 2021 · 0 comments
Open

Mark final (non-derivable / non-subclassable) classes #348

selurvedu opened this issue Dec 20, 2021 · 0 comments
Labels
Type Feature Request for a new feature.

Comments

@selurvedu
Copy link

Also known as "sealed" in C#.

References:
https://gitlab.gnome.org/GNOME/vala/-/issues/1036
https://gitlab.gnome.org/GNOME/glib/-/issues/2321
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1937
https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/257
https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/368#note_978855

The last link contains some explanations about how to determine if a class is final when it does not explicitly have a corresponding type flag. The flag was introduced quite recently in GLib 2.70 and gobject-introspection 1.70, but a convention of non-derivable classes has been around for years.

gi-docgen already supports those, hence docs.gtk.org does as well.

@lewisgoddard lewisgoddard added the Type Feature Request for a new feature. label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type Feature Request for a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants