Re: [Vala] How to use Posix namespace



I have a question about this.

Why doesnt vala or genie implements the "importing" feature by code.
Than one will not need to add --pkg ...

Like the "import" and "require" of python.
Is this because of the "C# like language" limitation?

Cheers.
Diego


2009/5/2 Ali Sabil <ali sabil gmail com>:
> 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, 2009 at 2:51 PM, Andrey -Zox- Kucherov <zox nsk raid ru> wrote:
>> 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?
>>
>> _______________________________________________
>> Vala-list mailing list
>> Vala-list gnome org
>> http://mail.gnome.org/mailman/listinfo/vala-list
>>
> _______________________________________________
> Vala-list mailing list
> Vala-list gnome org
> http://mail.gnome.org/mailman/listinfo/vala-list
>

<div><br></div>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]