You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have to set set_value_function to g_boxed_set_value. However, they are declared as value types, which means we need to tell Vala to use a reference. I'll figure this out.
It turns out to be more complicated than I expected because Vala view those types as value-type so it does not take a reference or indirect a pointer around GValue get/set calls.
For types that fit in a pointer (8 bytes or less), we can do a very nice trick of storing the value in the boxed pointer.
For 80 and 128 bit types, it's going to be trickier because we can't make a copy without leaking memory. I think it can be done with some macro tricks.
I'll add numeric_value_get_{type} and numeric_value_set_{type} definitions to mimic GValue API but for numeric types.
It seems
decimal128
can't be used for properties in classes inheriting fromGLib.Object
.Failing Code
Error Output
Working Code
The text was updated successfully, but these errors were encountered: