4 ms·
> Redefine & recompile a function not just functions, but whole classes too
by medo-bear 4y ago
> Redefine & recompile a function
not just functions, but whole classes too
- PurpleRamen 4y agoDoes this include replacing all existing instances of this class with new instances? Otherwise, how is this different from what we can do in any other dynamic language like python or javascript?
- medo-bear 4y agoall instances of the class are updated, which is more powerful than replacing. if you are curious to try it you can refer to the following https://lispcookbook.github.io/cl-cookbook/clos.html#:~:text=To%20redefine%20a%20class%2C%20simply,to%20reflect%20the%20new%20definition https://lispcookbook.github.io/cl-cookbook/clos.html#:~:text....
- _ph_ 4y agoYes, and there is even an API to control the update process of the existing instances.