Re: [Vala] function pointers?



"grep call callback" revealed the following test-cases demonstrating
function pointer usage:

http://svn.gnome.org/svn/vala/trunk/vala/tests/test-014.vala
http://svn.gnome.org/svn/vala/trunk/vala/tests/test-015.vala
http://svn.gnome.org/svn/vala/trunk/vala/tests/test-024.vala

Ciao,
Mathias

Am Dienstag, den 27.03.2007, 19:25 +0200 schrieb David Keijser:
Hi.

is it possible to use function pointers in vala at the moment. if so
could you provide a small sample on how to use them?

the reason i need them is because I'm writing a simple hash set and i
thought it would be a good idea to use GHashFunc from the hash table
in GLib.

btw, while playing around trying to include C code in the vala source
i found a way to break out of a comment. e.g

//*/ hash = ((GHashFunc)self->priv->_hashMethod)(o);/*
results in
/**/ hash = ((GHashFunc)self->priv->_hashMethod)(o);/**/
_______________________________________________
Vala mailing list
Vala paldo org
http://www.paldo.org/mailman/listinfo/vala




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