Re: [Vala] How to check if GLib.List is empty?

2014-12-02 Thread Dmitry Golovin
Hello all! I just tried to compile this: int main(string[] argv) { Liststring list = new Liststring(); assert( list == null ); return 0; } It compiles and runs. But this one doesn't compile: int main(string[] argv) { Liststring list; assert( list == null );

Re: [Vala] How to check if GLib.List is empty?

2014-12-02 Thread Dmitry Golovin
var list = new Liststring(); Looks nice and clean. Thanks. 02.12.2014, 17:54, Luca Bruno lethalma...@gmail.com: On 02/12/2014 16:51, Dmitry Golovin wrote:  Liststring list = new List();  Would diamond operator be implemented in the future? Anyone needs it? var list = new Liststring

[Vala] Perfect Vala IDE

2014-12-02 Thread Dmitry Golovin
Hello all! I don't want to start another vim vs emacs holywar. I want to know if there exist an all-in-one IDE (like Eclipse) for Vala. I tried valama, but it is crashing all the time and I don't know how to fix it. Gnome Builder is now in very early stage of development. What IDE do you use

Re: [Vala] acr 0.9.9

2014-12-12 Thread Dmitry Golovin
I really like you project and probably going to use it. 12.12.2014, 03:05, pancake panc...@youterm.com: I'm almost ready to release a new version of ACR. My own autoconf replacement tool.    https://github.com/radare/acr In this release I have fixed some bugs and added support for Vala.

Re: [Vala] Rewriting GLib C code in Vala

2015-07-27 Thread Dmitry Golovin
, Dmitry 24.07.2015, 14:33, Al Thomas astav...@yahoo.co.uk:  From: Dmitry Golovin d...@golovin.in  Sent: Friday, 24 July 2015, 10:04  Subject: [Vala] Rewriting GLib C code in Vala  I'm now transfering Cogl examples to Vala:  https://github.com/tpimh/vala-cogl Interesting stuff. I also like

[Vala] Rewriting GLib C code in Vala

2015-07-24 Thread Dmitry Golovin
Hello! I'm now transfering Cogl examples to Vala: https://github.com/tpimh/vala-cogl I'm a GLib newbie, so I need help with rewriting cogl-crate example: https://github.com/GNOME/cogl/blob/master/examples/cogl-crate.c Especially this part: ```c while (1) { CoglPollFD

Re: [Vala] why valac says "error: Failed to execute child process (Exec format error)"

2016-06-21 Thread Dmitry Golovin
Hi, Do you use (old, unmaintained) MinGW/MSYS or MSYS2 (https://msys2.github.io/)? It should not be a problem with MSYS2: just type pacman -S mingw-w64-vala It should be the latest version, so you don't need to compile it yourself. Regards, Dmitry 21.06.2016, 08:49, "oyster"

Re: [Vala] why valac says "error: Failed to execute child process (Exec format error)"

2016-06-17 Thread Dmitry Golovin
Hi, I had similar problem and solved it just by first generating C code (valac -C ...) and then compiling resulting code with GCC. Regards, Dmitry 15.06.2016, 18:42, "oyster" : > I am using mingw + msys on win7 64bits. The gcc can compile to produce > EXE file, and

[Vala] Incorrect C code generated

2016-03-22 Thread Dmitry Golovin
Hello! Discussed today on the IRC channel, also posting it to the mailing list. I don't know if it is a vala bug or I am just using things incorrectly. Here is my code: struct N { int i; } class ClassA : Object { public N a { get; set; } public ClassA(N a) {

Re: [Vala] Getting all the symbols from my code

2016-05-08 Thread Dmitry Golovin
07.05.2016, 15:35, "Al Thomas" <astav...@yahoo.co.uk>: >>  From: Dmitry Golovin <d...@golovin.in> >>  Sent: Saturday, 7 May 2016, 9:01 >>  Subject: [Vala] Getting all the symbols from my code >> >>  I want to have a list of all the symbols from

[Vala] Getting all the symbols from my code

2016-05-07 Thread Dmitry Golovin
Hi! I want to have a list of all the symbols from my code. First I create a CodeContext, then I add all the external packages and source files, then visit each file with a Parser. Then I do this: foreach (var src in context.get_source_files()) { print("\n" +

Re: [Vala] How small can you go with Vala? Was: Just a news I've read about popularity langage

2016-07-27 Thread Dmitry Golovin
22.07.2016, 18:38, "Al Thomas" : >   From: Dr. Michael Lauer >  Sent: Friday, 22 July 2016, 15:42 >  Subject: Re: [Vala] Just a news I've read about popularity langage > >>  As an embedded system engineer I see huge potential using Vala in embedded >>  

Re: [Vala] How to check if string is empty

2017-01-17 Thread Dmitry Golovin
My mistake. Thanks for correcting me. 17.01.2017, 10:55, "Jens Georg" : >>  In Vala you can simply just check for str != "", this is enough. > > No, if str is nullable it's semantically different, because str != "" > will be generated as > > if (g_strcmp0 (_tmp1_, "") != 0) { >   

Re: [Vala] How to check if string is empty

2017-01-16 Thread Dmitry Golovin
Hi Alexandre, In Vala you can simply just check for str != "", this is enough. Regards, Dmitry 16.01.2017, 21:28, "Alexandre Oliveira" : > I tried this in my method, even replacing 'string' for 'string?', but I > still get the same message in my terminal. > > What is your

Re: [Vala] The future of Vala

2016-09-14 Thread Dmitry Golovin
08.09.2016, 20:33, "Timm Bäder" : > Hey, > > this is probably just a mail for Jürg and maybe Luca, but if you have a > relevant opinion on the matter, that might be a fine reply as well. > > So, for quite a while the Vala project has seen very little activity. > The three people

Re: [Vala] Valadoc.org is fully operational again

2016-11-24 Thread Dmitry Golovin
24.11.2016, 18:33, "Ben Iofel" : > I'm working on a brand new valadoc by generating XML at > https://github.com/eustasy/vala-docs.org/tree/generator . Currently > valadoc.org generates html pages then extracts the parts it wants > > On Nov 24, 2016 9:16 AM, "Guillaume

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 > > -- >

[Vala] Potential Vala build system change (switch to Meson)

2017-08-17 Thread Dmitry Golovin
Hi all! As far as I know, Meson support building Vala code and it should not be too difficult to change the build system to Meson. Anyone working on it already? Is there a bug open for build system migration? Regards, Dmitry ___ vala-list mailing