- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This isjust to share for me a new experience.
I got wrong calculation result from a numeric-intensivelegacy codeand many attempts to find the reason failed. At last I found that a minus sign at the end of a code line was repeated at the beginning of the continuation line. I really didn't know that this was legal in CVF and VAX-VMS. MS Fortran 5.1 would give a compile error "F2570 Consecutive arithmetic operators illegal", if one had something like this:
A = B + C - - D
or
A = B + C -
& - D
But I have learnt know that there are unary and binary plus and minus operators in CVF and you can make a messof these two something like the following line without any problem:
A = B + C -----++------++------ D
Good to know!
Sabalan.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is explained in the Language Reference manual and should be flagged if you compile with standards checking enabled.

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