Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161223AbVKIU3g (ORCPT ); Wed, 9 Nov 2005 15:29:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161225AbVKIU3g (ORCPT ); Wed, 9 Nov 2005 15:29:36 -0500 Received: from teetot.devrandom.net ([66.35.250.243]:35026 "EHLO teetot.devrandom.net") by vger.kernel.org with ESMTP id S1161223AbVKIU3f (ORCPT ); Wed, 9 Nov 2005 15:29:35 -0500 Date: Wed, 9 Nov 2005 12:39:54 -0800 From: thockin@hockin.org To: linas Cc: Vadim Lobanov , "J.A. Magallon" , Kyle Moffett , Douglas McNaught , Steven Rostedt , linux-kernel@vger.kernel.org, bluesmoke-devel@lists.sourceforge.net, linux-pci@atrey.karlin.mff.cuni.cz, linuxppc64-dev@ozlabs.org Subject: Re: typedefs and structs Message-ID: <20051109203954.GA3539@hockin.org> References: <20051109003048.GK19593@austin.ibm.com> <20051109004808.GM19593@austin.ibm.com> <19255C96-8B64-4615-A3A7-9E5A850DE398@mac.com> <20051109111640.757f399a@werewolf.auna.net> <20051109192028.GP19593@austin.ibm.com> <20051109193625.GA31889@hockin.org> <20051109193828.GR19593@austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051109193828.GR19593@austin.ibm.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1062 Lines: 24 On Wed, Nov 09, 2005 at 01:38:28PM -0600, linas wrote: > On Wed, Nov 09, 2005 at 11:36:25AM -0800, thockin@hockin.org was heard to remark: > > Umm, references are implemented as pointers. Instead of a "zoo of > > pointers" you have a "zoo of references". No functional difference. > > Sigh. > > I think you are confusing references and pointers. By definition > you cannot "store a reference"; however, you can "dereference" > an object and store a pointer to it. Sigh, That's funny - I've written C++ code which has references as members of objects. You absolutely *can* store a reference. References are simply a syntactic simplification to eliminate the different pointer-dereference notation. If they make you think about a problem differently, that's fine, but they are really just pointers in disguise. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/