Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-16 Thread Evan Nemerson
On Wed, 2013-10-16 at 09:48 +0200, Donn Ingle wrote: On 15 October 2013 23:30, Evan Nemerson e...@coeus-group.com wrote: You're close. valac doesn't handle this very well because of the anonymous structs in the C API. It wants to assign to temporary variables even when all you're doing is

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-16 Thread Donn Ingle
Evan, thanks for that detailed email. There's a lot to digest, so I better get on it. All the best, /d ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Donn Ingle
Hello, I'm sure this is my small brain and lack of experience, but I can't get past this compile error. I will paste a complete sample below. --- using Gee; using Cairo; // Compile with: valac --pkg gee-1.0 --pkg gtk+-3.0 -X -lm cairopath.compile.bug.vala -o test public abstract class Shape :

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Shawn Ferris
Sigh.. clearly you should not listen to me.. I can't even use gmail.. My apologies if this has landed on the list a couple of times :D On Tue, Oct 15, 2013 at 4:06 AM, Donn Ingle donn.in...@gmail.com wrote: Hello, //Have tried Cairo.PathData[] data; I don't know anything about Cairo, but

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Donn Ingle
array.. A quick glance at the cairo vapi, and I think you really want this?: Cairo.PathData[] data = path.data; I feel disturbed by that ;) Not sure why. The code I'm trying to Vala-ize is here: http://cairographics.org/manual/cairo-Paths.html#cairo-path-data-t (scroll down a wee bit to

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Shawn Ferris
On Tue, Oct 15, 2013 at 12:48 PM, Donn Ingle donn.in...@gmail.com wrote: array.. A quick glance at the cairo vapi, and I think you really want this?: Cairo.PathData[] data = path.data; I feel disturbed by that ;) Not sure why. The code I'm trying to Vala-ize is here:

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Shawn Ferris
nevermind.. I just noticed that's wrong too :D On Tue, Oct 15, 2013 at 2:42 PM, Shawn Ferris shawn.fer...@gmail.comwrote: On Tue, Oct 15, 2013 at 12:48 PM, Donn Ingle donn.in...@gmail.com wrote: array.. A quick glance at the cairo vapi, and I think you really want this?:

Re: [Vala] Assist with compile issue re Cairo.PathData

2013-10-15 Thread Evan Nemerson
You're close. valac doesn't handle this very well because of the anonymous structs in the C API. It wants to assign to temporary variables even when all you're doing is accessing fields, and since they're structs the temporary variables aren't pointers, which will cause the CC to complain (even