Re: [Vala] Name clashes in generated C code



On Tue, Dec 28, 2010 at 15:32:07 -0800, Anatol Pomozov wrote:
I am sure using [CCode] is ok for libraries as well if cprefix value
does not change very often.

The reason to try to avoid [CCode] for libraries is that users of the library
will expect the code to follow some naming convention, which vala does by
default. When you resolve a name conflict with [CCode], you make it harder
for user to remember which of the objects the original name belongs to and
what is the name of that symbol for the other object, thus making it slightly
less user friendly. There will be no techincal problems.

Of course, changing the attribute will probably break API or ABI
compatibility. But there are many changes that will and you need to be
careful about all of them when maintaining library.

-- 
                                                 Jan 'Bulb' Hudec <bulb ucw cz>



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