Re: [Vala] How to use Posix namespace

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

 



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@xxxxxxxxx>:
> 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@xxxxxxxxxxx> 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@xxxxxxxxx
>> http://mail.gnome.org/mailman/listinfo/vala-list
>>
> _______________________________________________
> Vala-list mailing list
> Vala-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/vala-list
>

<div><br></div>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux