- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
"They'll double our funding if all our applications run on FORTRAN."
[image] [image]Admin
Admin
Yes, you read that right: Discourse is the only forum software that shows you less content (to be precise: no content at all) when you enable Javascript.
From Jeff Atwood, the guy that brought you http://blog.codinghorror.com/. Now he does it literally.
Admin
Notice that the definition of translation-unit is in a Syntax section.
Admin
Frist: "What was it useful for?" -- is still unanswered.
2nd, petty point: The source is 0-bytes, the program it produces is not.
Admin
I see nothing in your quoted documentation that specifies that there has to be anything in the "6.9 External definitions". And the "shall produce...", well the 0-byte source does not seem to be in violation "of any SYNTAX rule or constraint" -- at least that's the way it seems to me.
IMHO if the compiler/make produces a runnable executable, it seems to satisfy what real people consider a "program" (committees don't count as "real people"--IMO).
Admin
Admin
Sorry:
Admin
I first learned to program in FORTRAN. In 2010.
Admin
translation-unit: external-declaration translation-unit external-declaration
It is impossible to make a syntactically valid translation-unit without at least one external-declaration.
external-declaration: function-definition declaration
An external-declaration is either a function-definition or a declaration.
You can look up function-definition and declaration. I'm getting new eyeglasses tomorrow; you can too.
A conforming implementation is allowed to proceed as it wishes together with issuing at least one diagnostic. The implementation can say "That looks fine to me" (though accompanying documentation must inform the user that this wording is a diagnostic) and the implementation can proceed to format your hard drive, or do nothing, or whatever it wishes.
Admin
Admin
RealScript, thy name is COBOL
Admin
Two words: FORTRAN decompiler. Ugly, ridiculous, but it could work. Or not. As long as you have FORTRAN source code to show, I doubt anyone proposing that requirement has any idea what they're talking about anyway