From owner-freebsd-current Tue May 9 17: 7:13 2000 Delivered-To: freebsd-current@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 9600937B652; Tue, 9 May 2000 17:07:07 -0700 (PDT) (envelope-from marcel@cup.hp.com) Received: from l3107mxr.atl.hp.com (l3107mxr.atl.hp.com [15.19.254.19]) by palrel3.hp.com (Postfix) with ESMTP id F06962BA4; Tue, 9 May 2000 17:06:27 -0700 (PDT) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by l3107mxr.atl.hp.com (Postfix) with ESMTP id C667F4FDD3; Tue, 9 May 2000 20:06:26 -0400 (EDT) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com with ESMTP (8.8.6 (PHNE_17135)/8.7.3 TIS 5.0.1) id RAA29640; Tue, 9 May 2000 17:06:25 -0700 (PDT) Message-ID: <3918A802.A420EC76@cup.hp.com> Date: Tue, 09 May 2000 17:06:26 -0700 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Mike Smith Cc: obrien@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: One more question (different now) References: <200005092342.QAA20940@mass.cdrom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > > Ugh. I don't actually like that, because it serves a valid purpose. > What irritates me mostly is just that there is no way of casting a > volatile object into a non-volatile type, so you can't implement any sort > of conditional volatility exclusion. You can however use a union and have a non-volatile object aliasing a volatile object as in: union u { volatile int vi; int nvi; }; -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message