[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Vala] GSL Binding updated!!!
- From: "Jared Moore" <jaredm gmx com>
- To: "Matías De la Puente" <mfpuente ar gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] GSL Binding updated!!!
- Date: Sat, 14 Jun 2008 10:41:57 +1000
2008/6/14 Matías De la Puente <mfpuente ar gmail com>:
>
> I am not sure what is the function of this, but if not used it in objects
> the cast does'n work. Example
>
> Without [Compact]:
> samplefunction ( (Vector)a ); // in vala
> samplefunction ( GSL_VECTOR (a) ); // in C
>
> With [Compact]:
> samplefunction ( (Vector)a ); // in vala
> samplefunction ( (gsl_vector*)(a) ); // in C
>
[Compact] means that the class is just a plain C struct and doesn't
use GObject, which means that plain C casts must be used rather than
the GObject cast macros.
Cheers,
Jared
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]