[Vala] Methods/ctors overloading

2009-11-30 Thread Andrés G. Aragoneses
Hello. I'm wondering if the difference between Vala and C# wrt method/ctor overloading is intentional or is its real support planned in the future? I ask this because I think it's a really important feature. If not planned, I'd like to know if there would be interest in accepting patched for it.

[Vala] A few questions

2009-11-30 Thread Hugo Florentino
Hello, I have recently found Vala/Genie, and I think this is a very interesting project. Although I have learned some Java and can more or less understand Vala, I find Genie more attractive because the syntax is much simpler and IMHO has some similarity with Delphi, which is what I have used for

Re: [Vala] Methods/ctors overloading

2009-11-30 Thread Andrés G. Aragoneses
Replying to myself: Andrés G. Aragoneses escribió: Hello. I'm wondering if the difference between Vala and C# wrt method/ctor overloading is intentional or is its real support planned in It seems like not planned: http://mail.gnome.org/archives/vala-list/2008-July/msg7.html the future?

Re: [Vala] Methods/ctors overloading

2009-11-30 Thread Abderrahim Kitouni
Hi, 2009/11/30 Andrés G. Aragoneses kno...@gmail.com: Replying to myself: Andrés G. Aragoneses escribió: Hello. I'm wondering if the difference between Vala and C# wrt method/ctor overloading is intentional or is its real support planned in It's intentional, one of the main goals of vala is

Re: [Vala] Methods/ctors overloading

2009-11-30 Thread Frederik
Andrés G. Aragoneses wrote: Hello. I'm wondering if the difference between Vala and C# wrt method/ctor overloading is intentional or is its real support planned in the future? I ask this because I think it's a really important feature. If not planned, I'd like to know if there would be

Re: [Vala] Methods/ctors overloading

2009-11-30 Thread Andrés G. Aragoneses
Abderrahim Kitouni escribió: Hi, 2009/11/30 Andrés G. Aragoneses kno...@gmail.com: Replying to myself: Andrés G. Aragoneses escribió: Hello. I'm wondering if the difference between Vala and C# wrt method/ctor overloading is intentional or is its real support planned in It's intentional,

Re: [Vala] Methods/ctors overloading

2009-11-30 Thread Andrés G. Aragoneses
Frederik escribió: Andrés G. Aragoneses wrote: Hello. I'm wondering if the difference between Vala and C# wrt method/ctor overloading is intentional or is its real support planned in the future? I ask this because I think it's a really important feature. If not planned, I'd like to know if

Re: [Vala] A few questions

2009-11-30 Thread Abderrahim Kitouni
Hi, 2009/11/30 Hugo Florentino latinmid...@gmail.com: Hello, I have recently found Vala/Genie, and I think this is a very interesting project. Although I have learned some Java and can more or less understand Vala, I find Genie more attractive because the syntax is much simpler and IMHO has

Re: [Vala] Methods/ctors overloading

2009-11-30 Thread Frederik
Andrés G. Aragoneses wrote: Makes sense. But this problem is limited in scope: public methods of public classes. So the approach I would propose would be less intrusive than just adding method overloading that generate overkill names: a) Make method overloading for non-public members be

Re: [Vala] Methods/ctors overloading

2009-11-30 Thread Andrés G. Aragoneses
Frederik escribió: Andrés G. Aragoneses wrote: Makes sense. But this problem is limited in scope: public methods of public classes. So the approach I would propose would be less intrusive than just adding method overloading that generate overkill names: a) Make method overloading for

Re: [Vala] Methods/ctors overloading

2009-11-30 Thread Frederik
Andrés G. Aragoneses wrote: Ok, that's a good argument against this automatic naming system, so I would advocate for a compiler error instead of a warning in this case (so the error advices about making the member private/internal, or adding the ExposeName -you name it- attribute). Andres

[Vala] Printing Unicode Characters

2009-11-30 Thread Emad Al-Bloushi
Dears, I would like to print unichar via stdout.printf how can I do that ? Best regards, _ Windows Live Hotmail: Your friends can get your Facebook updates, right from Hotmail®.

Re: [Vala] Printing Unicode Characters

2009-11-30 Thread Emad Al-Bloushi
I have tried this one it works but I do now know if there is alternative solution unichar unicode_character = 'ع'; stderr.printf(Unicode Character : %s\n,new StringBuilder().append_unichar(unicode_character).str); Dears, I would like to print unichar via stdout.printf how can I do

Re: [Vala] Printing Unicode Characters

2009-11-30 Thread Jiří Zárevúcky
Emad Al-Bloushi píše v Po 30. 11. 2009 v 19:44 +0300: I have tried this one it works but I do now know if there is alternative solution unichar unicode_character = 'ع'; stderr.printf(Unicode Character : %s\n,new StringBuilder().append_unichar(unicode_character).str); What about

Re: [Vala] Printing Unicode Characters

2009-11-30 Thread Frederik
Emad Al-Bloushi wrote: Dears, I would like to print unichar via stdout.printf how can I do that ? Best regards, The GLib documentation mentions 'g_utf32_to_utf8()' to print values of gunichar to text: http://library.gnome.org/devel/glib/stable/glib-Unicode-Manipulation.html#gunichar

Re: [Vala] Object cloning in Vala for Java Developers

2009-11-30 Thread Frederik
Emad Al-Bloushi wrote: Peace be upon you all, does Vala support object cloning like Java shallow copy and deep copy ? if yes kindly add samples in http://live.gnome.org/Vala/ValaForJavaProgrammers page Best regards, I found this answer by Jürg to a similar question (it was about

Re: [Vala] Printing Unicode Characters

2009-11-30 Thread Emad Al-Bloushi
Dears, I have made this sample and I want to post it in GNOME wiki so do you recommend any change ? void main() { string unicode_string = 1234567890 ١٢٣٤٥٦٧٨٩۰ ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz أبتةثجحخدذرزسشصضطظعغفقكلمنهوي; for (weak string s = unicode_string;

Re: [Vala] Printing Unicode Characters

2009-11-30 Thread Xavier Bestel
Le lundi 30 novembre 2009 à 18:50 +0100, Jiří Zárevúcky a écrit : Emad Al-Bloushi píše v Po 30. 11. 2009 v 19:44 +0300: I have tried this one it works but I do now know if there is alternative solution unichar unicode_character = 'ع'; stderr.printf(Unicode Character : %s\n,new

Re: [Vala] A few questions

2009-11-30 Thread Hugo Florentino
Abderrahim Kitouni wrote: [indent=2] const MAXVALUE: int = 50 init myarray : array of int = {1..MAXVALUE} Isn't there a similar way to declare an array using only minimum and maximum values? No, arrays indices always start from 0, so you just pass the length, e.g. myarray : array of

Re: [Vala] A few questions

2009-11-30 Thread Jamie McCracken
On Mon, 2009-11-30 at 13:24 -0500, Hugo Florentino wrote: Abderrahim Kitouni wrote: [indent=2] const MAXVALUE: int = 50 init myarray : array of int = {1..MAXVALUE} Isn't there a similar way to declare an array using only minimum and maximum values? No, arrays indices

Re: [Vala] Printing Unicode Characters

2009-11-30 Thread Frederik
Emad Al-Bloushi wrote: Dears, I have made this sample and I want to post it in GNOME wiki so do you recommend any change ? You can avoid code duplication by pulling the character printing out of the switch cases. And you should use 'unowned' instead of 'weak' if you want to avoid string

Re: [Vala] Printing Unicode Characters

2009-11-30 Thread Emad Al-Bloushi
You can avoid code duplication by pulling the character printing out of the switch cases. And you should use 'unowned' instead of 'weak' if you want to avoid string copying. 'weak' is intended only for breaking reference cycles since some Vala versions. Best regards, Frederik I

Re: [Vala] Vala Bugfix Hackathon (was: when will vala 0.8 be released?)

2009-11-30 Thread Michael 'Mickey' Lauer
Am Freitag, den 20.11.2009, 17:36 +0100 schrieb Michael 'Mickey' Lauer: How can we move on with the hackathon? I guess the central question is who apart from Jürg (who seems to be very busy these days) has the knowledge to educate us how to fix certain things in an upstream-acceptable way?

Re: [Vala] CCode array length field name

2009-11-30 Thread Jan-Jaap van der Geer
On Sun, 2009-11-29 at 00:38 +0100, pHilipp Zabel wrote: vapi binding: public class SomeStruct { [CCode (array_param_name?...)] // what should this be ? [CCode (array_length_name = dataLength, array_length_type = size_t)] Not sure if that should be size_t or gsize. I have something

Re: [Vala] CCode array length field name

2009-11-30 Thread Evan Nemerson
On Mon, 2009-11-30 at 23:45 +0100, pHilipp Zabel wrote: On Mon, Nov 30, 2009 at 10:19 PM, Jan-Jaap van der Geer jjvdg...@inbox.com wrote: On Sun, 2009-11-29 at 00:38 +0100, pHilipp Zabel wrote: vapi binding: public class SomeStruct { [CCode (array_param_name?...)] // what should

Re: [Vala] CCode array length field name

2009-11-30 Thread Jan-Jaap van der Geer
On Mon, 2009-11-30 at 15:09 -0800, Evan Nemerson wrote: On Mon, 2009-11-30 at 23:45 +0100, pHilipp Zabel wrote: [CCode (array_length = false)] will make Vala turn errmess.length into constant -1 instead of errmess_length1. I don't know of any way to make that constant 252 instead. IIRC