Re: [Vala] GSL Binding updated!!!



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]