Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!ames!vsi1!altos86!elxsi!beatnix!corbett From: corbett@beatnix.UUCP (Bob Corbett) Newsgroups: comp.lang.fortran Subject: Fortran 8x: tabs Message-ID: <2779@elxsi.UUCP> Date: 27 Jun 89 03:32:36 GMT Sender: news@elxsi.UUCP Reply-To: uunet!elxsi!corbett (Bob Corbett) Distribution: usa Organization: ELXSI, San Jose Lines: 43 When I asked why tabs were not included in the draft standard, Bill Leonard replied Well, one reason is that we can't get a majority to agree on what a tab would mean. That is exactly why tabs should be included in the standard. I have yet to see a FORTRAN compiler that did not allow tabs in at least some contexts, and I have yet to see two FORTRAN compilers written by different authors that treated tabs the same. Most users do not know or do not care that tabs are nonstandard, and liberally sprinkle their codes with them. Consider the case of tabs in character literals. I know of no recent compilers that do not allow tabs in character literals. However, the interpretation of those tabs varies considerably. I have seen compilers implement all of the following interpretations: 1. Tabs are treated as single characters both in the source line and in the character value. This interpretation is the most common. 2. Tabs are treated as single characters in the character value but as an advance to the next tab stop in the source line. 3. Tabs are converted into enough blanks before lexical analysis. Therefore, in both the value in the source line, they are treated as some number of blanks. 4. Tabs are treated as the start of line-end comments. The last two interpretations make it difficult to create character literals containing tabs. All of these interpretations are permitted under the current standard because tabs are not part of the FORTRAN character set. If X3J3 does not choose to standardize the meaning of tabs, it should at least standardize the meaning of non-Fortran characters in character literals. Yours truly, Bob Corbett uunet!elxsi!corbett ucbvax!sun!elxsi!corbett