R
Richard Maine
LC's No-Spam Newsreading account said:- it is not obvious to find the relevant information in the
documentation :-(
I can't speak to whatever you are using as documentation for C, but you
mentioned MR&C as a source for Fortran. Dragging out my copy, most of
these issues look pretty clear in it to me.
The boz (binary, octal, and hex) literals are described in the section
on integer literal constants. The text says they are integers, in case
the section name wasn't enough clue. It then also says "The use of these
forms of constants is limitted to their appearance as implicit integers
in the data statement..." That seems pretty direct to me.
For the edit descriptors, B, O, and Z are all listed only in the section
on integer (pg 197) and described as for integers.
The one thing that I would agree makes some material a little hard to
find is the way that the book separates out the new f2003 material. I
quickly found the material on boz literals on page 15. That doesn't
cover the f2003 feature of allowing those forms in some intrinsics. For
that, you need to go to the chapter on "miscellaneous enhancements", in
particular 18.9, which is even high enough level to be in the table of
contents. That section also mentions a little aabout the reasons for the
limitations, while page 15 was pretty much "just the facts."
I'd suggest that the bigger thing that would make this material hard to
find would be failing to make it a habit to look. That seems to go along
with your comment elsewhere that "unless one has access to The Standard
Itself, the only way one can gain experience is testing with specific
compilers".