From: Grzegorz J. <ja...@he...> - 2004-09-17 07:27:05
|
I came across an excellent material to support my earlier claim that adding gratuitous member functions to Environment does not serve the design well. See this column from C/C++ User's Journal by Scott Meyers: http://www.cuj.com/documents/s=8042/cuj0002meyers/ The prophet says: "If you're writing a function that can be implemented as either a member or as a non-friend non-member, you should prefer to implement it as a non-member function." BR Grzegorz ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2004 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |