Re: [Vala] Starting with Vala

2017-04-04 Thread raum
Hello, I humbly tried to create some programs in Vala but I made a lot of mistakes (especially on NPC which was my first "big" program that is really not optimized, clean, etc. but has the merit to try something complex) http://www.github.com/Raumy You could take a look to "check_fs" which is be

Re: [Vala] Starting with Vala

2017-04-03 Thread Ulink
Hi, Dmitry already pointed you to the cool stuff, so there is only one left to say: Vala (plus GLib plus Gtk) is really nice! Go ahead and have fun! ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Starting with Vala

2017-04-03 Thread Dmitry Golovin
03.04.2017, 18:01, "Sascha Manns" : > Hello list, > > i would like to learn Vala and plan to port a Mono-GNOME-App to Vala. I > already seen the documentation. > > Maybe you know some small Vala apps where i can see the code in action? > > Greetings > > Sascha > > -- > Sascha Manns > Maifeldstraße

[Vala] Starting with Vala

2017-04-03 Thread Sascha Manns
Hello list, i would like to learn Vala and plan to port a Mono-GNOME-App to Vala. I already seen the documentation. Maybe you know some small Vala apps where i can see the code in action? Greetings Sascha -- Sascha Manns Maifeldstraße 10 56727 Mayen P: +49-2651-4014045 W: http://saigkill.tux

Re: [Vala] Starting with Vala, problems with strings

2009-04-21 Thread Levi Bard
> In my test code i want to split a math sentence in terms, like the > next string example: > "(2+a)*d+(a*b-3)-4-q/2" > > My function split_in_terms, is a very bad implementation (i know) that > should split the string into 4 terms, and if not possible, return > NULL. > For that i have tryed with a

Re: [Vala] Starting with Vala, problems with strings

2009-04-20 Thread Diego Jacobi
Hi again. I am still having troubles with things that i should easily do in C. Maybe because i have never programmed in C#, or mono or anything like it. In my test code i want to split a math sentence in terms, like the next string example: "(2+a)*d+(a*b-3)-4-q/2" My function split_in_terms, is a

Re: [Vala] Starting with Vala, problems with strings

2009-04-20 Thread Yu Feng
On Sun, 2009-04-19 at 23:33 +0200, Frederik wrote: > Diego Jacobi wrote: > > Why isnt string = GString ? > > Also i am courius why is it called StringBuilder? It sound like "not a > > GString". > > In order to resemble C# and Java which both have [s|S]tring and > StringBuilder. > > string = char

Re: [Vala] Starting with Vala, problems with strings

2009-04-19 Thread Frederik
Diego Jacobi wrote: > Why isnt string = GString ? > Also i am courius why is it called StringBuilder? It sound like "not a > GString". In order to resemble C# and Java which both have [s|S]tring and StringBuilder. string = char *(immutable) StringBuilder = GString(mutable) Regards, Fr

Re: [Vala] Starting with Vala, problems with strings

2009-04-19 Thread Diego Jacobi
Why isnt string = GString ? In my application i only need an string of ascii chars and return 2 strings of the same type (that is why the pointers), so i should use StringBuilder instead of strings? Also i am courius why is it called StringBuilder? It sound like "not a GString". 2009/4/19 Yu Fen

Re: [Vala] Starting with Vala, problems with strings

2009-04-19 Thread Bart Goossens
Hi Diego, Also have a look at: http://live.gnome.org/Vala/FAQ#head-66eaa46cac67dfc44f5bc00929c746124e5f311d and http://mail.gnome.org/archives/vala-list/2008-April/msg00058.html Best regards, Bart Hi Diego, private static int my_string_handler(string str)/*no '*'*/ { } If possible

Re: [Vala] Starting with Vala, problems with strings

2009-04-19 Thread Yu Feng
Hi Diego, private static int my_string_handler(string str)/*no '*'*/ { } If possible use unichar, string.next_char, string.get_char, to manipulate string is better than directly access the char by its location because all strings are utf8 encoded. StringBuilder sb = new StringBuilder("");

[Vala] Starting with Vala, problems with strings

2009-04-19 Thread Diego Jacobi
Hi. This may be a too much newbie question, but: How do you access a character in a string? private static int my_string_handler(string *str) { string s; for (x = 0 ; x < str->len() ; x++) { if (str[x]=='+') { s = str->substring(0,x);