[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Vala] embedding c code snippet in vala source.
- From: Jürg Billeter <j bitron ch>
- To: Alexey Lubimov <avl l14 ru>
- Cc: vala-list gnome org
- Subject: Re: [Vala] embedding c code snippet in vala source.
- Date: Fri, 22 Aug 2008 11:46:43 +0200
On Fri, 2008-08-22 at 13:28 +0400, Alexey Lubimov wrote:
> Jürg Billeter пишет:
> > Ok, as you agree that the null-terminated arrays should be handled,
> your
> > g_strv_length example is not a real use case for the snippet support.
> > Can you provide a concrete example where you think it makes more sense
> > to use a CCode snippet than anything else?
> >
> >
> Another case - utf8-compatible replacement for g_strndup()
string.substring is UTF-8 aware.
> You can see 15 bugs in vala-0.3.5 sources only...
Most of these look correct from a quick look. The scanner and parser use
byte offsets in most places, not character offsets, so these parts are
encoding-agnostic.
Jürg
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]