Re: [Vala] [RFC, PATCH] add async keyword to vapigen
- From: Jan Hudec <bulb ucw cz>
- To: Jürg Billeter <j bitron ch>
- Cc: vala-list gnome org
- Subject: Re: [Vala] [RFC, PATCH] add async keyword to vapigen
- Date: Mon, 28 Sep 2009 12:45:43 +0200
On Sun, Sep 27, 2009 at 22:32:48 +0200, Jürg Billeter wrote:
On Fri, 2009-09-25 at 09:23 +0200, Jan Hudec wrote:
On Thu, Sep 24, 2009 at 22:21:36 +0200, Philipp Zabel wrote:
Or would it be better to make the parser recognize asynchronous
functions that don't end in _async?
An async function can be recognized by having a GAsyncReadyCallback argument
next to last and void * last (that's what vala expects from an async
function). So it could probably be detected only by that (and not look at
"_async" suffix at all except to strip it).
Unfortunately, there are a few exceptions to that. An attribute sounds
safer for now.
Ability to override the automagic does make sense. But this rule should cover
more cases than the _async suffix one, no?
--
Jan 'Bulb' Hudec <bulb ucw cz>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]