Re: [Vala] Storing strings inside structs fails.



On Sun, 2009-09-20 at 13:57 +0200, Julian Andres Klode wrote:
storing a string inside a struct does not work.

If you compile the following Vala code:
    struct Item {
        public string uri;
    }

    public static void main() {
        var uri = "http://google.de";;
        Item item = {uri};

        stdout.printf("item.uri: %s\n", item.uri);
        stdout.printf("     uri: %s\n", uri);
    }


This was bug 583603 and is now fixed in master.

Jürg




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