Xref: utzoo comp.lang.smalltalk:1860 comp.lang.misc:4861 Path: utzoo!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!apple!sun-barr!newstop!sun!imagen!atari!portal!cup.portal.com!Rick_R_Kitts From: Rick_R_Kitts@cup.portal.com Newsgroups: comp.lang.smalltalk,comp.lang.misc Subject: Re: Languages that allow extensions to classes Message-ID: <28835@cup.portal.com> Date: 12 Apr 90 15:18:39 GMT References: <16560@estelle.udel.EDU> Distribution: na Organization: The Portal System (TM) Lines: 13 Adding a member function to a C++ class does not require recompilation of other source files which access the class unless the size of the class has changed (i.e. you added members). Also, unless you need to access the private parts of a class there is no real reason to actually modify the class definition itself. (Perhaps) the easiest thing to do is to make a derived (sub) class of the base (super) class which contains the method you want to add. Note that following this scheme could get quite messy since you could end up with a bunch of class hierarchy trees. Rick rkitts@slc.slac.stanford.edu