Open daviditen opened 5 years ago
Given that we're now only conditionally use
ing ISO_Fortran_binding.chpl when --library-fortran
is used, could this simply be made module-level initialization code in that module, such that it would run on program startup for any --library-fortran
compilation? (in which case, maybe the module should also be renamed to something more general like FortranInterop.chpl
or simply Fortran.chpl
?)
Since the last line depends on the name of the program being compiled with --library-fortran
, I'm not sure that is possible
Initializing the runtime/modules for --library-fortran currently requires the library author to write an initialization function like:
It would be good to generate an initializer like this so the library author doesn't need to.