- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your code is fine, except for thefact that # is not allowed as operator name. You can only redefine standard operators (+, -, *, //, >, etc.) or define your own in form of .OP. Thus, you need either
interface operator (.OF.)
or, for example, < could look like a good candidate (just from the "aesthetical" viewpoint)
interface operator (<)
print *, structaddress(5)
Unfortunately, the most "natural" choice for the task in question would be something like [ ], e.g.
print *, structaddress(5)[num]
but this is not allowed.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much!
My task is very simple: I just want to define a allocatable array, and the refer it like a normal array, but the array must be able to be appended when its size is not enough. When reallocated, the former allocated can't be deallocated, because some other pointers pointed to it!
How can I realize this task?
Zhanghong, Tang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much!
Each time I can study so much from you!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page