(j3.2006) Intrinsic modules
malcolm at nag-j.co.jp
Mon Nov 23 18:32:48 EST 2009
Thanks to Kurt for a very cogent explanation.
Van Snyder wrote:
> I wouldn't have this problem if I could write
> module IEEE_Arithmetic
> use, intrinsic :: IEEE_Arithmetic
> end module IEEE_Arithmetic
> but that's prohibited by 09-007r3:16.3.1p2.
> This is one of several reasons I advocated to allow a local name (and
> intrinsic module names are local names) to be the same as the name of a
> module in which it appears.
To which I have to reply: there is not enough demand (or money) for even one vendor to add YET ANOTHER SYMBOL HACK to "solve" this problem.
I don't see how it solves it anyway, since this isn't the same source code as on a platform without an IEEE_ARITHMETIC module. If we're allowed to change the source code to the extent of deleting the entire contents of a module (!) surely we're allowed to delete the MODULE and END MODULE lines as well.
....................Malcolm Cohen, Nihon NAG, Tokyo.
(Today is actually a national holiday ("Thanks to the workers"), but I will catch up on the rest of my outstanding email sometime later this week - I hope!)
More information about the J3