- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am re-hosting my current fortran sources from Visual Studio 4.x to Intel Fortran 7. I have many occurrences of multiple assigns in a single statement..
e.g.
a=b=c=d=1.0
This is apparently not allowed by the latest version.
Can anyone tell me if there is an option for the compiler to allow multiple assigns..
Re-writing the sources would be a very labor intensive project.
Thanks in advance for you help.
e.g.
a=b=c=d=1.0
This is apparently not allowed by the latest version.
Can anyone tell me if there is an option for the compiler to allow multiple assigns..
Re-writing the sources would be a very labor intensive project.
Thanks in advance for you help.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did MS Fortran allow that? Yuck! It's not standard Fortran and isn't syntax I've ever seen before in any Fortran compiler. You're going to have to rewrite it.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CDC Fortran recognized multiple assignment, but that was 30 years ago, before the '77 standard began to approach reality. Everyone knew it wasn't portable and never would be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually, if I recall correctly, MS Powerstation allowed such assignments. I used it once and quickly realized it was a bad idea. Even if you have a lot of these, you can change them quite easily with the text editor-- an "enter" after each "=", save a "1.0" in the paste buffer and "cntl v" it in. It may be tedious, but so is raking leaves and this only has to be done once.
Keith
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note that the following is standard Fortran:
A = 1.0; B = 1.0; C = 1.0; D = 1.0;
Steve
A = 1.0; B = 1.0; C = 1.0; D = 1.0;
Steve
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page