From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8306ea46f23b26cbe38e09021c0ee66e@mightycheese.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] g++ From: "rob pike, esq." In-Reply-To: <5.1.1.6.0.20030915114928.00af0a68@pop.monitorbm.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Sun, 14 Sep 2003 17:13:27 -0700 Topicbox-Message-UUID: 35cdd8ae-eacc-11e9-9e20-41e7f4b1d025 i was not being sarcastic. polymorphism is the dual of o-o. o-o fixes the data and varies the functions (this->a(), this->b(), etc.); polymorphism fixes the functions and varies the data (sort(type1), sort(type2), etc.). the stl uses macros to pretend all is o-o while the data varies unpredictably in your hand. have a look at how to define a custom hash or allocator in STL. somehow o-o + macros = polymorphism. if you can see the logic in that, you're probably insane; hence my comment. -rob