This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: arrays and derived data types in namelists
Thanks for the prompt reply - I just got back from a trip, so was a bit
tardy in coming back back to you.
> If possible tidy up work should be submitted separately from new features.
>
OK - will do.
> - Extend the existing st_set_nml_var_* routines, adding new ones for
arrays
> and derived types. Use these to construct the type descriptions at
runtime.
> - Have a single st_set_nml_descriptor entry point. Build an in-memory
> description of the namelist type at compile time, and pass this. Similar
to
> how formatted IO is done, but using a compiler/library friendly format
rather
> than a human readable string.
>
> Both of these have advantages and disadvantages. I personally favour the
> latter.
>
I agree that the latter sounds like the more elegant solution and more
maintainable to boot. I will do some "burrowing" and will come back to the
list with a proposal, before I do anything.