On Wed, 2010-08-11 at 00:35 +0200, aecos...@gmail.com wrote:
> /* Foo */
> using Gee;
> 
> class Foo : GLib.Object {
>     struct Sub {
>         public long initime;
>         public int duration;
>         public ArrayList<string> text;
>     }
> 
> }
> 

Hi,

your problem is with the class Foo if you should define it to be public:

/* Foo */
using Gee;

public class Foo : GLib.Object {
    public struct Sub {
        public long initime;
        public int duration;
        public ArrayList<string> text;
    }
}

What I don't know is why vala doesn't report an error when compiling
your example code since you are accessing a private structure.

Is just a vala compiler bug or the default scope of classes and structs
*is not* private when not specified?

Regards,
        Andrea

_______________________________________________
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to