[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Vala] delegates with exceptions
- From: "Jared Moore" <jaredm gmx com>
- To: "Christian Hergert" <christian hergert gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] delegates with exceptions
- Date: Wed, 25 Jun 2008 19:53:17 +1000
Hi,
That looks like a bug. If in doubt, just submit the bug anyway, since
the maintainer will be able to decide whether the behaviour is or is
not a bug much faster and more reliably than the mailing list. :)
(sorry Christian, I missed "Reply all" again...)
Cheers,
Jared
On Wed, Jun 25, 2008 at 7:44 PM, Christian Hergert
<christian hergert gmail com> wrote:
> Hi folks,
>
> I noticed that there is support for delegates to throw when wrapping
> libraries (the vapi's do it in a few places). However, I'd like to
> have a delegate in my vala code that can throw an error. This doesn't
> seem to happen even though it compiles.
>
> For example:
> public delegate void Callback (Result result, void* data) throws GLib.Error;
>
> currently compiles to,
> typedef void (*Callback) (Result result, void* data, void* user_data);
>
> While I'd expect it to compile to
> typedef void (*Callback) (Result result, void* data, void*
> user_data, GError **error);
>
> Therefore, calling the method in a try/catch results in "warning:
> unreachable catch clause detected".
>
> If this really is a bug, and not just me, I'd be glad to submit a bug
> report and perhaps start patching.
>
> Cheers!
>
> -- Christian
> _______________________________________________
> Vala-list mailing list
> Vala-list gnome org
> http://mail.gnome.org/mailman/listinfo/vala-list
>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]