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 <[EMAIL PROTECTED]> 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 > [email protected] > http://mail.gnome.org/mailman/listinfo/vala-list > > _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
