Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!think!linus!linus!fkuhl From: fkuhl@mitre.org (F. S. Kuhl) Newsgroups: comp.lang.c++ Subject: Re: reference parameters for overloaded operators Summary: What's the slicing problem? Message-ID: <117703@linus.mitre.org> Date: 21 Aug 90 11:41:26 GMT References: <1990Aug13.144540.7804@ctk1.UUCP> <26CBE285.4EC2@tct.uucp> <56749@microsoft.UUCP> Sender: usenet@linus.mitre.org Reply-To: fkuhl@ralph.mitre.org (F. S. Kuhl) Organization: The MITRE Corporation, McLean, VA Lines: 12 In article <56749@microsoft.UUCP> jimad@microsoft.UUCP (Jim ADCOCK) writes: >Also, whenever doing polymorphic programming [as in vtables and virtual >functions, not polymophic via parameter overloading] one should call >by reference to avoid the slicing problem. OK, I give. What's the slicing problem? C++ already looks to my uninitiated mind like a Swiss Army knife. -- Frederick Kuhl fkuhl@mitre.org Civil Systems Division The MITRE Corporation