> Thus, more functions could be handled in the compiler itself.
> (Likewise for INTMOD_IEEE_EXCEPTIONS, not that I know whether
> that has any relevant functions.)

In theory, there is no reason why we need an explicit .mod file in the library 
for any of the three IEEE modules. They would probably be better treated as 
compiler intrinsics in the front-end itself, in fact, like all other 
intrinsics. It would also be easier to adjust for generic forms, and provide 
better diagnostics for mismatching arguments, etc. This seems to be the way to 
go, as the next standard versions have added even more intrinsics, some of 
which really shouldn’t be function calls (comparison, ordering, etc).

The reason those modules are not fully implemented in the front-end is simple: 
I didn’t know how to implement them directly in the front-end, and I am not 
entirely sure we have the appropriate stuff for that. ISO_FORTRAN_ENV is 
implemented in the front-end, but its members are simpler, really.

In a way, you can see this as a call for help: if someone front-end-savvy has 
ideas how to do this, we could partner up ;)

FX

Reply via email to