From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 12 Mar 2015 18:28:49 -0700 To: 9fans@9fans.net Message-ID: <2b655eb215c19eff765bd06b93d096b5@brasstown.quanstro.net> In-Reply-To: References: <201503112030.t2BKU71p008530@skeeve.com> <97ECED3C-853F-482C-A098-E60245EF347A@me.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] ken cc for linux Topicbox-Message-UUID: 497f4b14-ead9-11e9-9d60-3106f5b1d025 > One potential big future change (not yet made) is to switch to > strictly ANSI rules for unsigned+signed values meeting in "the usual > arithmetic conversions". The rules are horrible, but it's one of the > few ways in which the compiler implements something that's neither an > extension nor a restriction compared to the standard. You'll never > miss most of the others. One approach there is to have the compiler > consider the type under both systems and warn if the difference might > cause trouble (typically in comparisons, but there might be other > cases). Most of the Plan 9 source has been compiled under the ANSI > regime in the form of Plan 9 Ports, so I'd expect that most of the > tricky cases have already been fixed. if this is done, please do add the diagnostic as an error. i'd rather not spend any more brain than necessary on "the usual conversions". - erik