Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Thomas Koenig Newsgroups: comp.arch Subject: Re: Computer architects leaving Intel... Date: Wed, 4 Sep 2024 21:02:35 -0000 (UTC) Organization: A noiseless patient Spider Lines: 12 Message-ID: References: <2024Aug30.161204@mips.complang.tuwien.ac.at> <505954890d8461c1f4082b1beecd453c@www.novabbs.org> Injection-Date: Wed, 04 Sep 2024 23:02:35 +0200 (CEST) Injection-Info: dont-email.me; posting-host="04b9462bf8233c0522365da918e60878"; logging-data="4187789"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WpZDD9xS3GeUSksSqb35x+fqoKZWMgc0=" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:zYmGtWREAaRYI3Azlt5duQQ9iKQ= Bytes: 1819 Scott Lurndal schrieb: [unsigned] > We use it exclusively for datatypes in the domain [0, 2**n). It's always > compared against other unsigned variables or constants. Works quite well. > Safer and cleaner than willy-nilly using int. The proposal for adding an unsigned data type to Fortran, which I initiated and which I am currently implementing for gfortran, does exactly that - no comparisions of signed vs. unsigned without explicit conversion (and no arithmetic either).