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 605901 - [PATCH] rfc, some array fixes
[PATCH] rfc, some array fixes
Status: RESOLVED DUPLICATE of bug 571486
Product: vala
Classification: Core
Component: Parser
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-01-02 15:37 UTC by Marc-Andre Lureau
Modified: 2010-01-30 16:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
parser: accepts 'new unowned T[]' (1.45 KB, patch)
2010-01-02 15:45 UTC, Marc-Andre Lureau
reviewed Details | Review
fix an empty unref_function="" usage (890 bytes, patch)
2010-01-02 15:45 UTC, Marc-Andre Lureau
none Details | Review

Description Marc-Andre Lureau 2010-01-02 15:37:49 UTC
The following 2 patches let me write:

vapi:
        [Compact]
        [CCode (free_function = "", cname = "struct LLVMOpaqueType", cheader_filename = "llvm-c/Core.h")]
        public class Ty {
        }

code:

var args = new unowned Ty[] { Ty.int32 () };
Comment 1 Marc-Andre Lureau 2010-01-02 15:45:13 UTC
Created attachment 150684 [details] [review]
parser: accepts 'new unowned T[]'
Comment 2 Marc-Andre Lureau 2010-01-02 15:45:24 UTC
Created attachment 150685 [details] [review]
fix an empty unref_function="" usage
Comment 3 Jürg Billeter 2010-01-29 18:46:06 UTC
As discussed on IRC a few weeks ago, we need more generic syntax support for arrays with unowned elements, so that you can also use the type in declarations.
Comment 4 Marc-Andre Lureau 2010-01-30 16:50:51 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 571486 ***