dyon icon indicating copy to clipboard operation
dyon copied to clipboard

Dynamically overriding / reloading functions / modules

Open elkowar opened this issue 4 years ago • 2 comments

Would it be possible to somehow dynamically rewrite/replace a function or module at runtime, without having to write to a file explicitly? I can't find anything like that documented anywhere.

My usecase would be to use this in something like a vim-style text-editor where you (even as the user) could re-write functions and add new behaviour to the application at runtime. For this, being able to actually freely override any module or even just function would be a massive addition to flexibility.

elkowar avatar Nov 21 '20 18:11 elkowar

You can, by using https://github.com/PistonDevelopers/dyon/blob/master/src/lib.dyon#L233

bvssvni avatar Nov 25 '20 11:11 bvssvni

ohhh I didnt see that, nice! is that documented anywhere?

elkowar avatar Nov 25 '20 15:11 elkowar