[Ur] callbacks from the c ffi

Marc Weber marco-oweber at gmx.de
Fri Sep 28 02:05:03 EDT 2012


Excerpts from Greg Samsa's message of Fri Sep 28 03:36:58 +0200 2012:
> I've been happily playing with Ur/Web and am pleased with the results so far.  One problem I am stuck on however is creating a callback from Ur, in other words, calling a C function that can then call Ur functions.  Unless I am misreading the docs this doesn't seem to be currently supported.
Talk about what you want to do exactly.

> In looking at the generated C code, the api's generated are very
> straight forward, would it be possible to simply call those from a C
> function or would this have unintended consequences?
Take care about memory management .. If you know whether this is fine
you probably have the answer or you get close to it.

Marc Weber



More information about the Ur mailing list