Answering your questions:
1) Does it depend on the programming language? Or framework? Or an editor?
I donβt know the exact name in .NET terminology, but in Java / Eclipse, code modification during its operation is called Hot Code Replacement. It all depends on whether the runtime can accept such changes while preserving the rest of the program.
2) Is it only when I change delegates? Or other things?
If there are changes in behavior, I would say that it will be accepted soon. Structural changes, such as adding methods, renaming classes, or changing other, possibly more complex constructs that translate to classes or otherwise, rather static structures, will cause problems at the most time.
3) Why is this so?
Well, other answers should make this clear. Some changes cannot be made at runtime. Static type security is another reason that can be circumvented otherwise.
source share