Re: [Vala] Bad C code generation (lvalue required as unary '' operand)

2015-01-29 Thread Guillaume Poirier-Morency
Le jeudi 29 janvier 2015 à 16:58 +0100, yannick inizan a écrit : the old safe method : public static void main (string[] args) { Value? v = toto; Value val = {}; val.init (v.type()); v.copy (ref val); print (%s\n, (string)val); } p.s. : sorry for last message (*$£% gmail)

Re: [Vala] Bad C code generation (lvalue required as unary '' operand)

2015-01-29 Thread yannick inizan
add an 'v != null' assertion to avoid GLib Critical error :) 2015-01-29 17:42 GMT+01:00 Guillaume Poirier-Morency guillaumepoiriermore...@gmail.com: Le jeudi 29 janvier 2015 à 16:58 +0100, yannick inizan a écrit : the old safe method : public static void main (string[] args) { Value?

Re: [Vala] Process.spawn_command_line_async; do nothing in windows

2015-01-29 Thread gontzal
I have solved myself!!! When you need to use Process.spawn_command_line_async you must copy into the executable folder those files: gspawn-win32-helper.exe gspawn-win32-helper-console.exe Bye.:- og., 2015.eko urtren 22a 13:18(e)an, gontzal igorleak idatzi zuen: Hello!! Using

Re: [Vala] Bad C code generation (lvalue required as unary '' operand)

2015-01-29 Thread Guillaume Poirier-Morency
Le jeudi 29 janvier 2015 à 17:46 +0100, yannick inizan a écrit : add an 'v != null' assertion to avoid GLib Critical error :) 2015-01-29 17:42 GMT+01:00 Guillaume Poirier-Morency guillaumepoiriermore...@gmail.com: Le jeudi 29 janvier 2015 à 16:58 +0100, yannick inizan a

Re: [Vala] Bad C code generation (lvalue required as unary '' operand)

2015-01-29 Thread yannick inizan
Vala translate your cast to a get_type function of your value. ex: Value v = toto; var val = (string)v; //equals to 'var val = v.get_string();' so (Value)my_val is impossible because GLib.Value doesn't have a get_value function. 2015-01-29 15:16 GMT+01:00 Guillaume Poirier-Morency

[Vala] Bad C code generation (lvalue required as unary ‘’ operand)

2015-01-29 Thread Guillaume Poirier-Morency
I am working on Valum, a web micro-framework written in Vala https://github.com/antono/valum valac is generating very strange code that doesn't compile. Part of the framework is about offering facilities to push arbitrary values into CTPL template environment. At some point, I try to case a

Re: [Vala] Bad C code generation (lvalue required as unary '' operand)

2015-01-29 Thread yannick inizan
the old safe method : public static void main (string[] args) { Value? v = toto; Value val = {}; val.init (v.type()); v.copy (ref val); print (%s\n, (string)val); } p.s. : sorry for last message (*$£% gmail) 2015-01-29 16:48 GMT+01:00 Guillaume Poirier-Morency

Re: [Vala] Bad C code generation (lvalue required as unary '' operand)

2015-01-29 Thread yannick inizan
the old safe method : 2015-01-29 16:48 GMT+01:00 Guillaume Poirier-Morency guillaumepoiriermore...@gmail.com: Le jeudi 29 janvier 2015 à 15:30 +0100, yannick inizan a écrit : Vala translate your cast to a get_type function of your value. ex: Value v = toto; var val = (string)v;

Re: [Vala] Bad C code generation (lvalue required as unary '' operand)

2015-01-29 Thread Guillaume Poirier-Morency
Le jeudi 29 janvier 2015 à 15:30 +0100, yannick inizan a écrit : Vala translate your cast to a get_type function of your value. ex: Value v = toto; var val = (string)v; //equals to 'var val = v.get_string();' so (Value)my_val is impossible because GLib.Value doesn't have a get_value