GNOME Bugzilla – Bug 698107
Allow specifying name of the result length parameter for methods/properties that return an array
Last modified: 2018-05-22 14:46:16 UTC
I have a property in my class like so: public Line[] lines { owned get { ... } } The signature of the generated C code looks like this: Line** class_name_get_lines (ClassName* self, int* result_length1); I'd like to be able to set the name of the result_length1 parameter myself. In the CCode attribute, there's a parameter called "array_length_cname" that seems like it would be perfect for this, but the documentation says it only applies to fields, and indeed, when I tried to apply it to the property, nothing happened.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/375.