Introspection in Fortran for generic file I/O libraries

Indeed, from the above link we can test various code snippets with proposed functionalities (using Compiler Explorer), like named tuple. I think it will be very useful to let people (in the committee) know this more widely… (IMO, it is not good to make a final spec based only on “thought experiments” (like in the current Fortran standard approach, “think like a compiler”), because it is often the case that design flaws become apparent in actual implementation (like PDT?) or tests of the proposed feature. Also user feedback is crucially important, IMHO.

(RE reflection in chapel, I asked a question for my above post some time ago (on Stack Overflow), and one of the core developers kindly explained the details. (In short, it was a typo in the manual and there is indeed “getfield()” by reference, so no problem at all.))

1 Like