Code Cleanup - Memory

Memory

What about actually using out list? Should parameters be pointers? References? What about return values? Who deletes these nodes? Should we delete rest when we are deleted? Destructors. (Reference counting and handle body) You make it you delete it. (look in patterns for guidence) Note that it is important to mach new [] use to delete []. Resource allocation is initialization (Stroustrup p.364)

Other Oddities



jwalker@cs.oberlin.edu