2008/6/14 Matías De la Puente <[EMAIL PROTECTED]>:
>
> 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
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to