Closed itdaniher closed 10 years ago
how does this mesh with current approach of "pack everything in a struct and copy it to each task on spawning?"
Closure doesn't seem to be a great solution - the function prototypes currently used in instant.rs/parts are for extern rust-abi functions, not closures. I ran into lifetime issues trying to modify the enum to also support closures. Possibly build a function accepting a four argument function and a variable and returning a three argument function? Grasping at straws.
we have a clearly workable solution for the immediate future, so putting this off till v2.0.
handled via ratpak
possibly just use a closure to anonymize a function that takes N extra parameters, hardcoded?