After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698107 - Allow specifying name of the result length parameter for methods/properties that return an array
Allow specifying name of the result length parameter for methods/properties t...
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: general
0.20.x
Other Linux
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-16 04:24 UTC by Alexander Krivács Schrøder
Modified: 2018-05-22 14:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexander Krivács Schrøder 2013-04-16 04:24:51 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.
Comment 1 GNOME Infrastructure Team 2018-05-22 14:46:16 UTC
-- 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.