[mapguide-internals] RE: RE: Coding Standards

Norm Olsen norm.olsen at autodesk.com
Thu Feb 3 11:30:56 EST 2011


I'm all for that.  I learned the hard way at great expense to myself and several others.

Norm

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jackie Ng
Sent: Wednesday, February 02, 2011 5:58 PM
To: mapguide-internals at lists.osgeo.org
Subject: [mapguide-internals] RE: RE: Coding Standards


As someone who is starting to get his hands *real* dirty with the internals
of the MapGuide Source, a primer on the proper usage of the Ptr<> smart
pointer template in the most common scenarios:

  1. Variable assignment
  2. Returning values
  3. Casting
  4. Usage when stored as a class member variable

As well as when to use the SAFE_ADDREF and SAFE_RELEASE macros, would be a
most welcome addition to this document and other budding non-Autodesk
MapGuide developers

- Jackie
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Coding-Standards-tp1821966p5987147.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals


More information about the mapguide-internals mailing list