On May 30, 2011, at 4:19 PM, Geoffrey Garen wrote: > Updated: > > Const member functions: > > Do use const member functions in classes that are independent data holders, > to help distinguish between references that can modify the data and > references that can't. > > Do not use const member functions in classes that participate in object > graphs, since the distinction is weak. Do not use const member functions for > DOM or render tree nodes.
Even in a class that is used in a tree, I still think simple member variable accessor methods (that do not return tree neighbors) should be const. Simon _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

