Re: [Vala] Problems with static properties

2009-10-26 Thread Jan Stępień
On Mon, 26 Oct 2009 07:14:15 +0200 Jan Stępień wrote: > $ cat Test.vala > > class Test { > public static int x {get; set;} > Test(int val) { x = val; nop(x); } > private void nop(int a) { } > } > > $ valac -C Test.vala > > Here's a fragment from Test.c: > > static Test* test_

[Vala] problem with posix profile

2009-10-26 Thread Barry Kauler
As always, as a guy with assembly, C and Bash programming background only, I hope that I'm not asking a dumb question... I understand that posix profile compiles code without glib/gobject dependency, but I found some simple examples do not compile. For example, this one in Genie syntax: init

Re: [Vala] Newbie question

2009-10-26 Thread Frederik
Jud Craft wrote: > Does Vala print its own error messages for the Vala language, or does > it spit out the C errors that GCC gives in the background? Vala prints its own error messages and warnings. GCC errors are bugs in the Vala compiler (or you don't have the header files of the libraries used

[Vala] Newbie question

2009-10-26 Thread Jud Craft
Does Vala print its own error messages for the Vala language, or does it spit out the C errors that GCC gives in the background? ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] simple string example no longer compiles

2009-10-26 Thread Jamie McCracken
On Mon, 2009-10-26 at 18:44 +0100, Abderrahim Kitouni wrote: > Hi, > > 2009/10/26 Barry Kauler : > > I am asking about > > > > var s = new string > > > > To me, it *does* make sense, but anyway, I am not asking about it's > > merits. I would like to know why it compiled before, not now. > > I

Re: [Vala] [Genie] simple string example no longer compiles

2009-10-26 Thread Abderrahim Kitouni
Hi, 2009/10/26 Barry Kauler : >  I am asking about > >  var s = new string > >  To me, it *does* make sense, but anyway, I am not asking about it's >  merits. I would like to know why it compiled before, not now. >  It looks like quite legal syntax to me, and the compiler was happy >  with it, and

Re: [Vala] [Genie] simple string example no longer compiles

2009-10-26 Thread Barry Kauler
I know that you can just do var s = "" I am asking about var s = new string To me, it *does* make sense, but anyway, I am not asking about it's merits. I would like to know why it compiled before, not now. It looks like quite legal syntax to me, and the compiler was happy with it, and i

Re: [Vala] [Genie] simple string example no longer compiles

2009-10-26 Thread Raphael Bosshard
Hey there, > Could someone explain this to me? I don't understand why this code was > > ok before but no longer. > Why not simply var s = "" instead of new string? In my opinion, having > a constructor for string which takes a string does not make any sense. > Why not? 'string' is a class like an

Re: [Vala] calling delegate from async

2009-10-26 Thread Abderrahim Kitouni
Hi, 2009/10/24 pHilipp Zabel : > > I still get the critical error message, though: > > ** (valac:1106): CRITICAL **: vala_data_type_get_value_owned: assertion `self > != NULL' failed > > Any idea where this is coming from? This means that an instance method is being called on a null variable. To f

Re: [Vala] [Genie] Using MarkupParser

2009-10-26 Thread Abderrahim Kitouni
Hi, 2009/10/25 Patrick Castle : > I've been trying to learn Genie and it's going OK for the moment. However, I > was > trying to translate a Vala example using MarkupParser in GLib and I was coming > unstuck on how to define multiple anonymous functions in a comma-separated > parameter list. > [.

Re: [Vala] [Genie] simple string example no longer compiles

2009-10-26 Thread Julian Andres Klode
Am Montag, den 26.10.2009, 05:30 +0800 schrieb Barry Kauler: > Hi guys, > There is a very simple Genie program that compiled ok early in 2009: > > init > var s = new string > s += "My name is Barry" > print s > > I have got Vala out of git yesterday, and the above program will n

Re: [Vala] [Genie] simple string example no longer compiles

2009-10-26 Thread Barry Kauler
Okay, I'll post this to the bugzilla. On 10/26/09, Barry Kauler wrote: > Hi guys, > There is a very simple Genie program that compiled ok early in 2009: > > init > var s = new string > s += "My name is Barry" > print s > > I have got Vala out of git yesterday, and the above pro