[J3] Revision of "inquiry function" definition is needed

Malcolm Cohen malcolm at nag-j.co.jp
Sun Nov 24 05:05:25 EST 2019

Hi folks,

I note that this dates back to Fortran 2003. However...

There is no issue here. IEEE_SUPPORT_DENORMAL has arguments, and the result may depend on their properties. That there might be no actual argument in a specific reference does not make the dummy arguments cease to be dummy arguments. And the result of the function in question is properly defined (in the subclause that defines that function).

And the property of being “not present” (for an optional argument) is indeed a property of the dummy argument that is not its value!

So I do not agree that the definition *needs* to be updated or modified.

That said, it *might* be worth considering an editorial change to make it less confusing for some. Perhaps changing the definition to something like
  intrinsic function, or function in an intrinsic module, whose result
  can depend on the properties of one or more of its arguments, but
  does not depend on their values

would be worth considering.
Or Bob’s somewhat circular-sounding suggestion of (paraphrase) “function classified as an inquiry function”, with the above text as a Note. However, as the definition we have has actually uncovered mistakes (where functions were wrongly classified as inquiry functions), that has its own flaws.
Furthermore, as there is nothing actually wrong with the existing text, I would definitely give this a rather low priority.
........................Malcolm Cohen, NAG Oxford/Tokyo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20191124/b2accd72/attachment.html>

More information about the J3 mailing list