[J3] Private enumerators
Vipul Parekh
parekhvs at gmail.com
Sat Oct 19 14:58:54 EDT 2019
Van,
As I was trying to suggest as politely as I could (!) during subgroup
discussions, an attribute of 'private' on an enumerator in an
enumeration type makes no sense to me.
The plenary discussions and the requirements paper effectively
established an enumerator is NOT a component of the enumeration type.
The point also being a derived type is not quite a good way to look at
the enumeration type. I think an "array named constant" is likely the
closest analogy one can draw for an enumeration type, and an array
element for the enumerator member of the enumeration type:
* And note, the Fortran standard applies the PRIVATE/PUBLIC attribute
on the whole of the "array named constant", one does not get to modify
the visibility of its individual elements.
I think the same applies to an enumeration type: one shall not specify
the visibility on the enumerator members in an enumeration type.
Paper 19-249r1 can be simplified further with this aspect removed.
Also, my impression of the feedback during the plenary was calling for
*a few example syntax listings* (however trivial or obvious it may be
for you) in the revised paper, not more verbiage on a use case.
Regards,
Vipul
On Sat, Oct 19, 2019 at 1:36 PM Van Snyder via J3
<j3 at mailman.j3-fortran.org> wrote:
>
> Gary objected to private enumerators.
> ..
> Can we have a mail vote to proceed with 19-249r1?
>
>
More information about the J3
mailing list