Re: [Vala] Building problem



On Wed, 2010-08-11 at 00:35 +0200, aecostas 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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]