I love OCaml, I'm waiting for my copy of Real World OCaml ! I am a beginner OCaml programmer, just know the functionnal part, a little imperative, but not much about modules, functors, objects, etc...
For sort of an interpreter project, I made sort of a newbie emacs-like evaluation. I keep a list of triplet containing a list of command name bindings as strings, a string for the description, and the ocaml function to call. The main loop just look for a matching entry in the list and call the function.
Then it was really simple to add new functionnalities, you just write a function and put an entry in the list.
I like the concept of being self-extensible like Emacs, this was easily extendable, but not really self extendable.
Could I make a program self extensible with OCaml ? How would I do that ?
I know how Emacs works, it is a big virtual machine so it interpret code and modify it's runtime environment by itself, but is there a way to add functionnalities to an OCaml program with user added modules ? or something else ?
ps : Don't laugh at me if my project sounds basic to you but I'm a beginner !
Thank you