Vivek Rao wrote:
> Comments? I know that one can define a function init_time_of_day to
> get this effect, with a bit more typing.
What you are suggesting is part of the new Fortran revision, Fortran
2003. Additionally, one can define a generic containing a function
(returning a derived type) with the same name as the type itself, which
allows for "constructors".
Best,
Aleksandar
|