From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] const From: Charles Forsyth Date: Fri, 9 Dec 2005 09:54:13 +0000 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: bfb22bc0-ead0-11e9-9d60-3106f5b1d025 > the compiler will not registerize x. This is occasionally > necessary in the kernel because of waserror(). > For example: > > x = 0; > if(waserror()){ > print("x=%d\n", x); > nexterror(); > } > x = 1; > x = f(x); i think i'ts usually better to (re)write these to avoid confusing the compiler, for instance by doing a new waserror/nexterror following x=1, although if x changes value frequently, that's difficult.