Re: [Vala] length method



        print ("Hej".length.to_string ());


On 03/30/11 10:11, Luca Dionisi wrote:
stdout.printf("%d\n", "Hej".length);

On Wed, Mar 30, 2011 at 10:07 AM, Kris Thomsen<lakristho gmail com>  wrote:
Hi,

I'm new to Vala (have developed a bit in C# and learning it at school).

I'm trying to get the length of a string with this code:

public static void main(string[] args) {
    stdout.printf((string)"Hej".length);
}

And it builds fine, but gives me a Segmentation Error (Core dumped).

Can anybody help me to make this work correctly?

// Kris Thomsen

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


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





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