*** SUGGESTION
Consider declaring argument 'allmessages' in procedure 'getmessages' as
CHARACTER(*),POINTER::
instead of
CHARACTER(msg_tag_len),ALLOCATABLE::
Benefits:
1) (*) instead of (msg_tag_len):
(a) I think assumed-length strings are safer - it is impossible to have
argument length mismatch, whereas using fixed-length string leads to stack
corruption if not detected at compile time (IVF does appear to detect it).
(b) Forcing (msg_tag_len) forces users to have a dedicated array for
allmessages, whereas allowing other-lenth-strings means you can reuse other
char arrays for this purpose (more flexible).
2) POINTER instead of ALLOCATABLE
(a) Question of safety. At least for the moment, Fortran-95 features appear
more reliable than Fortran-2003.
*** What version of RFortran are you using?
Version 1.00 Beta
Original issue reported on code.google.com by dmitri.k...@gmail.com on 11 Aug 2009 at 5:03
Original issue reported on code.google.com by
dmitri.k...@gmail.com
on 11 Aug 2009 at 5:03