[J3] enum

Walt Brainerd walt.brainerd at gmail.com
Sat Oct 6 19:29:42 EDT 2018


I have found enum to be useful in some code I am developing.
I know you are all working on some of this, but maybe you can
consider this another vote to enhance it a bit next time.

I do not claim to have thought out how to best do this, just have some
things that would have been convenient for me.

enum    ! No bind(c) -- parameters are default integer kind ?
enum(kind=my_enum_kind)
enum, public   Makes all the enumerators public.  Maybe I missed something,
        but the only way I saw to do this is to list all the enumerators in
a PUBLIC stmt
Have a parameter c_enum in ISO_C_BINDING

-- 
Walt Brainerd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20181006/b66d62ad/attachment.html>


More information about the J3 mailing list