Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161260AbVKIWCS (ORCPT ); Wed, 9 Nov 2005 17:02:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161254AbVKIWCS (ORCPT ); Wed, 9 Nov 2005 17:02:18 -0500 Received: from ns.firmix.at ([62.141.48.66]:2755 "EHLO ns.firmix.at") by vger.kernel.org with ESMTP id S1161265AbVKIWCR (ORCPT ); Wed, 9 Nov 2005 17:02:17 -0500 Subject: Re: typedefs and structs From: Bernd Petrovitsch To: Andreas Schwab Cc: thockin@hockin.org, linas , Vadim Lobanov , "J.A. Magallon" , Kyle Moffett , Douglas McNaught , Steven Rostedt , linux-kernel@vger.kernel.org, bluesmoke-devel@lists.sourceforge.net, linuxppc64-dev@ozlabs.org In-Reply-To: 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> <20051109203954.GA3539@hockin.org> Content-Type: text/plain Organization: http://www.firmix.at/ Date: Wed, 09 Nov 2005 23:00:50 +0100 Message-Id: <1131573650.3258.2.camel@gimli.at.home> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 30 On Wed, 2005-11-09 at 22:53 +0100, Andreas Schwab wrote: > thockin@hockin.org writes: > > > Sigh, That's funny - I've written C++ code which has references as members > > of objects. You absolutely *can* store a reference. > > You can _initialize_, but not _modify_ (reseat) it. reset? As in: ---- snip ---- struct x { struct y * const p; }; ---- snip ---- We assume that no one casts the "const" away. Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services - 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/