3 ms·
If the size of a struct is changed through hot-code reloading then how does the runtime react?
by jsjolen 7y ago
If the size of a struct is changed through hot-code reloading then how does the runtime react?
- amedvednikov 7y agoOnly function bodies can changed. I don't think it's possible to modify structs on the fly. Maybe it is, I need to think about it/do research.
- jsjolen 7y agoDon't worry, it pretty much isn't possible to do so without semantics which will basically make your program "drift" during run-time away from what a newly compiled program would do. EDIT: Assuming inlining and call-by-value struct is a possibility.