[Vala] length method



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


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