Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bad things about your favourite programming language
#9
Not if you use smart pointers. Treat a pointer as an object. In its constructor allocate the memory and in the destructor deallocate the memory. Voila - no need for self-memory management. Smart pointers can also do bounds checking, array searching, etc. - anything a higher level language can do.
Reply


Messages In This Thread
Bad things about your favourite programming language - by Fiel - 2010-08-27, 11:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)