free hit counter

Monday, December 10, 2007

smart pointer haters?

Quite a thread on Smart pointers from 2005:
"Smart" Pointers - comp.lang.c .moderated | Google Groups

This guy, a self described Smart Pointer Hater, thinks "...they make resource tracking more difficult and obscure" In some instances, like his factory example, maybe. In most of my instances, the RIIA paradigm frees me from having to worry about leaked memory. I think there's a substantial shift to declaring more objects on the stack rather than the heap that's difficult to get used to if you come from a C background and really like your pointers.



Post a Comment

<< Home