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

Re: [Vala] ABI stable code?



2008/4/26 Daniel Svensson <dsvensson gmail com>:
> 2008/4/26 Mikkel Kamstrup Erlandsen <mikkel kamstrup gmail com>:
>
> > I am wondering if it is possible to write a lib in Vala that can be ABI
>  > stable... Both varying (ABI stable) code changes, but also varying Vala
>  > compiler versions?
>
>  Shouldn't be a problem once Vala 1.0 has been released and things have
>  stabilized?
>
>  --
>  Daniel Svensson
>  _______________________________________________
>  Vala-list mailing list
>  Vala-list gnome org
>  http://mail.gnome.org/mailman/listinfo/vala-list
>
I guess you would have to go the same way as you do with code i C. e.g
add padding to your classes and structs manually. I believe
"class/struct to C-struct" in Vala is rather stable at this point as
its basically translation of type names. This is because the methods
and such of a class is not put in the C-struct except when using
virtual methods. but other than that I don't think vala would pose any
problems when making a ABI-stable API.


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