justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Any tips for memory management in C/C++?
Asked by gio (62.103.65.x) on October 23 2011, 7:10am
Reply on October 24 2011, 2:50pm:
    I'm a fan of WDL_HeapBuf etc (having objects that manage resizes sensibly, and automatically have their destructors called is quite nice). C++ new and delete should only be used for single class instances, IMO, new[]/delete[] are terrible things.

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS