[Next] [Prev] [Up] [Top]

11.0 Variables

Prefer automatics to heap allocation (GL)


If you find a new of a class or struct at the beginning of a function, and a delete at the end of the function, this is a likely sign of a poor design. Use an automatic instead. It is much faster, and less likely to cause "memory leaks".


No Title
[Next] [Prev] [Up] [Top]

Generated with CERN WebMaker

This site was grabbed using the TRIAL version of Grab-a-Site. This message does not appear on a licensed copy of Grab-a-Site.