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?
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
>> Like the "import" and "require" of python.
>
> Python doesn't have a "require" directive! :P
>
>> Is this because of the "C# like language" limitation?
>
Yeah, sorry. I realised that in another post ^^
I just find it a usefull distinction. import and require
So, you are saying that not being a