- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This line compiles without error in cvf 6.6.
Wutzit mean?
logical notTraded
notTraded=+++.true.
Tim
Wutzit mean?
logical notTraded
notTraded=+++.true.
Tim
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It compiles, but is non-standard.
The "+++" is essentially ignored. The manual explains how consecutive unary operators are interpreted.
Now, since + is an arithmetic operator, the .true. is theoretically converted to integer -1, then assigned to notTraded, but this is all semantics - the end result is as if you had written:
notTraded=.true.
Steve
The "+++" is essentially ignored. The manual explains how consecutive unary operators are interpreted.
Now, since + is an arithmetic operator, the .true. is theoretically converted to integer -1, then assigned to notTraded, but this is all semantics - the end result is as if you had written:
notTraded=.true.
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