[Vala] How to use Posix namespace

2009-05-02 Thread Andrey -Zox- Kucherov
Hello, Sorry for newbie question... but how can I use Posix namespace in my project? When I type --- using Posix; --- The compiler returns an error --- The namespace name `Posix' could not be found --- However I was able to find the posix.vapi file in /usr/share/vala/vapi/. How do I use it?

Re: [Vala] How to use Posix namespace

2009-05-02 Thread Ali Sabil
Hi, You are supposed to use the --pkg posix when compiling your program: valac -o foobar --pkg posix foobar.vala The "using" directive in Vala is actually equivalent to the c++'s "using namespace" and doesn't imply "importing" the package that the namespace belongs to. -- Ali On Sat, May 2, 2

[Vala] [Genie] bash execution.

2009-05-02 Thread Diego Jacobi
Hey, i dont know if this is the correct list for Genie, i havent found much on gnomedocs, but the same applies for vala: It could be a very good feature to be able to run bash commands with the normal form: Example for file named main.gs: #!/usr/bin/env valac main.gs [indent=2] init print "Hel

[Vala] [Genie] simple Hello world.

2009-05-02 Thread Diego Jacobi
Hi. I find Genie, perfect for me, but i ask my self sometimes about certain stuff that i can not answer, like for this simple hello world: [indent=2] init print "Hello World" This produces the next main.c: #include #include #include #include void _main (char** args, int args_length1);

Re: [Vala] [Genie] simple Hello world.

2009-05-02 Thread Ed Jason
Puppy Linux is adopting Genie some of your future questions may be answered here :) http://www.puppylinux.com/genie/ 2009/5/2 Diego Jacobi : > Hi. I find Genie, perfect for me, but i ask my self sometimes about > certain stuff that i can not answer, like for this simple hello world: __