Re: [Vala] [PATCH] GIO nullable parameters



On Tue, 20 May 2008 16:12:03 +0100
Sam Liddicott <sam liddicott com> wrote:

I think it may be simpler to allow the null-able clue to be part of the
C source using a macro indicator which can be compiled away in C.

#ifndef VALA
#define NULL_OK
#endif

send_to_mainloop_async (GLib.SourceFunc func, NULL_OK GLib.DestroyNotify notify);

It enrichens the C source and allows the C maintainer to keep the hint
alive effortlessly, rather than someone have to keep a meta file in sync.

I would rather see this as part of GLib, since other language bindings need
to be be able to access these informations.

Probably someone is working on something similar as part of the
GObject-introspection effort.

-- 
Andrea Bolognani <eof kiyuko org>
Resistance is futile, you will be garbage collected.

Attachment: pgphoA7OIRMIz.pgp
Description: PGP signature



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