Deutsch English Français Italiano |
<v3078d$3j33c$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feeds.phibee-telecom.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Thomas Koenig <tkoenig@netcologne.de> Newsgroups: comp.arch Subject: Re: ALTER, ASSIGN and labels-as-values (was: Unicode in strings) Date: Sun, 26 May 2024 20:49:17 -0000 (UTC) Organization: A noiseless patient Spider Lines: 20 Message-ID: <v3078d$3j33c$1@dont-email.me> References: <v1ep4i$1ptf$1@gal.iecc.com> <34sk4jdhf1crb73jdns37e462ciumq5fjp@4ax.com> <v2ubim$3908a$1@dont-email.me> <2024May26.105139@mips.complang.tuwien.ac.at> <v3042v$27mb$1@gal.iecc.com> Injection-Date: Sun, 26 May 2024 22:49:17 +0200 (CEST) Injection-Info: dont-email.me; posting-host="5a6d2243593dea978ce1dbfadfacf749"; logging-data="3771500"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mF6GctKtymhIF4MalSbDZhZGWW8ZCamw=" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:Geq6iVAohWlQAxBc+yMlVvhmKu0= Bytes: 1849 John Levine <johnl@taugh.com> schrieb: > According to Anton Ertl <anton@mips.complang.tuwien.ac.at>: >>People love to point out that the assigned GOTO has been removed from >>Fortran, as a damnation of the concept. But it just tells us that >>Fortran programmers don't program the kind of code where this feature >>is useful. > > It still has computed goto which does the same thing without needing > label variables: > > GO TO (10, 42, 30), N > > which says if N is 1 goto 10, if 2 goto 42, if 3 goto 30, otherwise > continue. This has been marked as obsolescent since at least Fortran 95. Fortran has had SELECT CASE for quite a few decades now, which is similar to C's switch statement, except that it it much nicer (ranges, strings, ...). Can't do Duff's Device with it, though.