I’m looking to embed an ocaml Toplevel within my application. To wit, I’m writing Godot 4.2 bindings and looking to add the ability to stop the world and execute code from the toplevel. That is, control passes from Godot to OCaml, which executes a toplevel, which after you’re done you C-d from and control passes back to whatever OCaml code called the toplevel (and presumably back to Godot), hopefully with the effects on any global refs still visible. I can’t imagine this is a novel idea but I’m having trouble googling around for how to embed a toplevel in a (native shared_object)
(which the Godot extension must be compiled as).
Any help would be appreciated!
2 posts - 2 participants