skaller wrote: >>> This obviously cannot be cast to "void (*)(int)" as it's a struct. I >>> think there's some fancy thing you can do with "callback" and "-->", >>> but I haven't figured it out yet. >>> > > Yeah, nor have I :) > > [] > Second, you need to be dead sure that the Felix function > you use is not going to use the garbage collector or whatever. > And also that it isn't itself collected when you have it over > to the OS.
signals are quite tricky to deal with when you got garbage collection :) I found a mailing about how ocaml does it: http://groups.google.com/group/fa.caml/browse_thread/thread/d846aea2c1ce3ca8/0ca9914fdbccd5fd?lnk=gst&q=signal&rnum=9#0ca9914fdbccd5fd They're basically putting a placeholder function in the signal, and sprinkle a check all over the code to see if any signals came through. It's messy, but it allows you to have fully heaped and gc'd code. Any other ways of doing this? -e ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language