[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [computer-go] C/C++ programmer ready to try new language



> My program is in C++. ... I do spend too much time debugging memory problems in 
> C/C++.

Have you looked at using smart pointers, and STL containers? See
www.boost.org for high quality smart pointers and a number of other high
quality, peer-reviewed libraries. Though if you are not familiar with STL
and templates than Boost is going to come as a shock ;-).

And as others using C have mentioned, pre-allocate everything you can
(though that is perhaps more to do with speed than to avoid memory problems).

Darren


_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/