Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
C Syntax
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Arthur J. O'Dwyer, post: 1712557"] No, as far as I can tell Dan is correct in this case (depending on your definition of "mainstream"). Neither Fortran nor COBOL were *free-form* languages, but they certainly weren't indentation-sensitive. See the RPG language for another slightly more modern (but much less "mainstream") example, IIRC. Fortran was not indentation-sensitive; in fact, one of the most widespread anecdotes about Fortran is the "DO20I = 1.10" incident, which hinges on the fact that Fortran didn't recognize anything special about whitespace *at* *all*! You could write[1] C WITH INDENTATION DO 50 I=1, 99 BOTTLS = 100-I PRINT 10, BOTTLS 10 FORMAT(1X, I2, 31H BOTTLE(S) OF BEER ON THE WALL.) 50 CONTINUE STOP END or equally C WITHOUT ANY INDENTATION DO 50 I=1, 99 BOTTLS = 100-I PRINT 10, BOTTLS 10 FORMAT(1X, I2, 31H BOTTLE(S) OF BEER ON THE WALL.) 50 CONTINUE STOP END The fact that punch cards in the Good Old Days Before I Was Born(TM) had designated areas in which it was okay to punch holes representing code, or line numbers, or comments, has nothing to do with the concept of "indentation." See thread [URL]http://groups.google.com/groups?threadm=c6d30b$so4$1@online.de[/URL] in comp.lang.misc for some discussion tangentially related to this topic. In fact, I'd suggest this whole discussion move there, if you want to keep arguing about what's "indentation" and what's not. Followups set. -Arthur [1] - Shamelessly nicked from the 99 Bottles of Beer project and shortened with a blunt instrument. No warranties on correctness. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
C Syntax
Top