[J3] Syntax for enumeration
Malcolm Cohen
malcolm at nag-j.co.jp
Tue Oct 15 19:51:04 EDT 2019
Guys, we already *have* an ENUMERATOR statement.
This suggested syntax is IMNSHO completely unacceptable. Having a statement that is a simple list of names is crap. And has no place to put anything useful like an accessibility attribute.
The keyword ENUMERATOR signals extremely strongly that these are not components!
In the common case one would write ENUMERATOR precisely once. This is not a burden, let alone a great burden.
Cheers,
--
..............Malcolm Cohen, NAG Oxford/Tokyo.
From: J3 <j3-bounces at mailman.j3-fortran.org> On Behalf Of Bill Long via J3
Sent: Wednesday, October 16, 2019 7:30 AM
To: General J3 interest list <j3 at mailman.j3-fortran.org>
Cc: Bill Long <longb at cray.com>
Subject: Re: [J3] Syntax for enumeration
> On Oct 15, 2019, at 2:50 PM, Ondřej Čertík via J3 <j3 at mailman.j3-fortran.org <mailto:j3 at mailman.j3-fortran.org> > wrote:
>
>>
>> 1)
>>
>> TYPE,ENUM :: my_enum
>> a,b
>> c
>> END TYPE
I would prefer this form. Simple and to the point. Emphasizes that a TYPE is involved. And it omits the ENUMERATOR keyword - typing this is tedious. The lack of declarations for the enums signals that these are not components.
Cheers,
Bill
Bill Long longb at cray.com <mailto:longb at cray.com>
Principal Engineer, Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9143
Cray, a Hewlett Packard Enterprise company/ 2131 Lindau Lane/ Suite 1000/ Bloomington, MN 55425
Disclaimer
The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. Please see our Privacy Notice <https://www.nag.co.uk/content/privacy-notice> for information on how we process personal data and for details of how to stop or limit communications from us.
This e-mail has been scanned for all viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20191016/1631d6b2/attachment-0001.html>
More information about the J3
mailing list