Path: utzoo!attcan!uunet!lll-winken!ames!apple!sun-barr!rutgers!att!westmark!mole-end!mat From: mat@mole-end.UUCP (Mark A Terribile) Newsgroups: comp.lang.c++ Subject: Re: Reference Semantics Summary: Why references? Message-ID: <193@mole-end.UUCP> Date: 18 May 89 05:25:21 GMT References: <315@odi.ODI.COM> <9310@alice.UUCP> <10251@socslgw.csl.sony.JUNET> <323@odi.ODI.COM> Organization: mole-end--private system. admin: mole-end!newtnews Lines: 13 > 1) I ask myself, why have both pointers and references in the > language? There seem to be three differences as described be js: There are a couple of good reasons, centering around the value that references have when passing arguments. If we want to be able to write functions (including operator functions) that accept objects rather than pointers as written, but that actually pass pointers (for reference semantics or for evviciency) we seem to be pretty well stuck to references. -- (This man's opinions are his own.) From mole-end Mark Terribile