[J3] [EXTERNAL] Re: Clarification on F18/017

Ondřej Čertík ondrej at certik.us
Wed Jun 10 12:07:35 EDT 2020



On Wed, Jun 10, 2020, at 8:57 AM, Vipul Parekh via J3 wrote:
> ...
> In the meantime, if anyone wants to "dabble with" C++ 'behavior' for 
> the code example provided by Ondrej and Neil, here's one example where 
> I try to live up to the axiom "an engineer can Fortran in any 
> programming language". Note I feel 'unique_ptr' in C++ (that came much 
> later in C++11/C++14) is the closest analogue to ALLOCATABLEs without 
> TARGET in Fortran (which became 'usable' starting 2003 standard 
> revision), hence its use in this example:

I made a few cosmetic changes to your code to make it more canonical C++:

https://gist.github.com/certik/009a6abbee195fe41e8b994d0dd9cf12


Ondrej


More information about the J3 mailing list