[Vala] Bug: Assert failure in compiler

2015-05-07 Thread Craig
Hi, I think I found a bug (see the text at the end). Where can I report this? Thanks, Craig someone@someone-desktop:~/temp$ cat test.vala public class Hello { public delegate void HelloFunc(T t); public HelloFunc _hello = (t) => {}; } someone@someone-desktop:~/temp$ valac -c test.v

[Vala] Strings and template comparison

2015-05-07 Thread Craig
Hello, Why are strings not compared by value when they're passed into template functions? Consider this gist: https://gist.github.com/weberc2/4131654ff068d27f9cde Is there anything I can do to get value comparison back in templates? Please advise. Thanks,

Re: [Vala] How to implement cast in vala?

2015-05-03 Thread Craig
I don't understand what you're trying to do... You already have access to a Class2 via Class1.getClass2(). Do you want some sort of fancy syntactic sugar, so you can do something like `Class2 class2 = new Class1();` instead of `Class2 class2 = new Class1().getClass2()`? On Sat, May 2, 2015 at 8:49

Re: [Vala] Adding unitary test support to Autovala

2014-11-17 Thread Craig
Not exactly sure what you mean, but a very common pattern is one unit test file for each class (unit) you want to test. This has worked fine for me in every language I've worked with. On Nov 17, 2014 4:07 PM, "rastersoft" wrote: > Hi all: > > I'm working on adding unitary test support to autovala

Re: [Vala] A brand new build system

2014-05-16 Thread Craig
Yeah, I also wanted to use bake but I couldn't find any documentation On May 16, 2014 12:03 PM, "Steven Oliver" wrote: > I'd never heard of bake either till now. > > The only reference I could find to any kind of documentation was here: > > https://answers.launchpad.net/bake/+faq/2172 > > Steven

Re: [Vala] A brand new build system

2014-05-16 Thread Craig
Personally, I don't see why we need a system that works for every instance. Let's build something that works for 99% of cases and the 1% can use cmake or autotools. Also, there are other languages that bind to C and C++ without convoluted build systems. It's a solved problem. :) On May 16, 2014 9:2

Re: [Vala] fatal error: glib.h: No such file or directory

2013-07-06 Thread Craig
s a little strange that Anjuta needs to be manually pointed to glib-2.0. At any rate, this works for me now. Thanks everyone for your time. On Sat, Jul 6, 2013 at 10:14 AM, wrote: > Hello, > Could you paste the output of the following command : > $ pkg-config --cflags glib-2.0 > R

[Vala] fatal error: glib.h: No such file or directory

2013-07-06 Thread Craig
the linker can't find such an important package? Thank you in advance, Craig ___ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Handling multiline strings

2013-06-10 Thread Craig
Alternatively, if you want the string literal to look presentable and you know it will l not have tabs, you can strip said tabs from the string. But generally Mario's suggestion is preferred, I think. On Jun 10, 2013 8:04 AM, "Mario Daniel Ruiz Saavedra" < desideran...@rocketmail.com> wrote: > Use