Re: [Vala] Vala Bug



On Wed, 2008-10-15 at 23:05 +0400, Кутейников Дмитрий wrote: 
I have defined function with name register and Vala translated it to C
as is.
So gcc shows errors because "register" is reserved keyword in C.

Vala currently doesn't check possible conflicts in the C namespace but
it's definitely something that is on the todo list[1].
For plain functions it's somewhat different as their signature is not
hidden (for public functions) and the generated C function name can't be
changed automatically. I would suggest using a namespace for this or
explicitly override the cname in the CCode attribute for now.

Hans

[1] http://bugzilla.gnome.org/show_bug.cgi?id=469335 





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