Re: [Vala] length method
- From: Luca Dionisi <luca dionisi gmail com>
- To: vala-list gnome org
- Subject: Re: [Vala] length method
- Date: Wed, 30 Mar 2011 10:11:37 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]