-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Make Vector<T>::duplicate() const #79140
base: master
Are you sure you want to change the base?
Conversation
Needs an update to the extension API validation Also, do we need to add a 4.1 one as well now that we have released it, along with 4.0 |
@godotengine/gdextension Does this technically break compat for extensions? |
If the method's hash changed, then I guess it breaks compat. Otherwise, a GDExtension that was built for 4.1 making use of To avoid breaking compat, you would need to add a compat method (see #76577). |
Yes, I think @raulsntos is correct. I guess it's time to start testing out this compatibility system for real? |
0d506b7
to
e7a757e
Compare
What is the correct way to add compatibility methods? Is there an example I can follow? |
Hm, digging into this one deeper, I don't think we currently have a way to provide compatibility methods on
|
e7a757e
to
06e948f
Compare
06e948f
to
4ad40dc
Compare
4ad40dc
to
8c2fa7f
Compare
Validate extension JSON: Error: Field 'builtin_classes/PackedStringArray/methods/duplicate': is_const changed value in new API, from false to true. | ||
Validate extension JSON: Error: Field 'builtin_classes/PackedVector2Array/methods/duplicate': is_const changed value in new API, from false to true. | ||
Validate extension JSON: Error: Field 'builtin_classes/PackedVector3Array/methods/duplicate': is_const changed value in new API, from false to true. | ||
Validate extension JSON: Error: Hash changed for 'builtin_classes/PackedByteArray/methods/duplicate', from 32C526A8 to 0EC26674. This means that the function has changed and no compatibility function was provided. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Hash changed" errors shouldn't be silenced. You need to add compat methods for all these, otherwise this breaks binary compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, as I pointed out in my previous comment, there isn't presently a way to register compatibility methods on Variant
types. Adding a way to do that is a pre-requisite to this change.
8c2fa7f
to
45d14cd
Compare
45d14cd
to
595f298
Compare
595f298
to
fd1aee2
Compare
fd1aee2
to
5010976
Compare
eb0d0c4
to
260892c
Compare
260892c
to
8a66e7e
Compare
8a66e7e
to
e563733
Compare
e563733
to
6c1fbdd
Compare
eb11ddc
to
f113dca
Compare
f113dca
to
3bab518
Compare
3bab518
to
b37ee51
Compare
b37ee51
to
55a3669
Compare
I tried to duplicate a
const PackedStringArray
and I noticed that it was impossible, but it should be possible.