[Vala] function pointers?



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);/**/



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