[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Vala] ABI stable code?
- From: "Juerg Billeter" <j bitron ch>
- To: "David Keijser" <keijser gmail com>
- Cc: vala <vala-list gnome org>
- Subject: Re: [Vala] ABI stable code?
- Date: Mon, 28 Apr 2008 16:32:03 +0200 (CEST)
On Sat, April 26, 2008 14:15, David Keijser wrote:
> 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?
>>
>>
> 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.
Yes, we probably want to make it easily possible to specify padding for
the class struct. We want to be ABI-stable starting with Vala 1.0.
However, I don't expect too many ABI changes until then in most cases. One
that comes to my mind right now is that we want to add an implicit
GDestroyNotify parameter/field for delegates by default.
Juerg
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]