Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.std.c Subject: Re: observability Message-ID: <857@skye.ed.ac.uk> Date: 7 Sep 89 17:43:50 GMT References: <1237@gmdzi.UUCP> <10885@smoke.BRL.MIL> <242@ssp1.idca.tds.philips.nl> <10937@smoke.BRL.MIL> <1989Sep6.160709.4890@light.uucp> <1989Sep6.183349.2866@jarvis.csri.toronto.edu> <28946@news.Think.COM> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 14 In article <28946@news.Think.COM> barmar@think.COM (Barry Margolin) writes: >Here's a simple example where I think "volatile" is meaningful: [Handler example deleted] Another case is local variables in routines that call setjmp(). Non-volatile auto variables whose value has been changed since the call to setjmp() may have arbitrary values after a longjmp(). Volatile variables will have their correct values. -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin