Liste des Groupes | Revenir à cl fortran |
Lynn McGuire <lynnmcguire5@gmail.com> schrieb:Equivalences are an effective way of building data structures, you can do that with Common as well but sometimes equivalence is more suitable.
I have 197 common blocks included from dedicated files and a massiveWhat do you use the equivalences for? Saving memory? Then this
number of equivalences all over the place. Several of the equivalences
are actually in the common block files. The equivalences have made the
eventual C++ conversion of the Fortran code tricky.
should not be a large issue on modern machines.
If you are using them for tricks with type conversion, then you
are on thin ice already, and have been since Fortran 66.
And if you have a few big arrays, then changing those to ALLOCATABLE
and allocating them at runtime might well be straightforward.
Les messages affichés proviennent d'usenet.