[Tutor] Modifying Source Code while Program is Running

Alan Gauld alan.gauld at freenet.co.uk
Thu Nov 24 22:10:48 CET 2005


> For example if your program is running, and you make a change to a
> class, is it possible to create the necessary class definition and
> save it to a file?

You can do that but even if you do follow the LSP closely, you still 
can have problems, especially when you subtract functions or data 
rather than add them. Once they are gone you can't easily put them 
back if things go wrong!

There is nearly always a better solution...

Alan G.


More information about the Tutor mailing list