Deutsch English Français Italiano |
<vegfhf$67ut$1@paganini.bofh.team> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail From: R Daneel Olivaw <Danny@hyperspace.vogon.gov> Newsgroups: comp.lang.fortran Subject: Re: Is there a way in Fortran to designate an integer value as integer*8 ? Date: Sun, 13 Oct 2024 14:47:43 +0200 Organization: To protect and to server Message-ID: <vegfhf$67ut$1@paganini.bofh.team> References: <vdict2$339ak$1@dont-email.me> <vdir24$35104$1@dont-email.me> <vdk718$3bulb$1@dont-email.me> <vdl6fi$3jra3$2@dont-email.me> <vdlfpl$3l0f5$1@dont-email.me> <vdmbml$3p2dv$1@dont-email.me> <vdmrgc$3rih7$2@dont-email.me> <vegdr2$m3av$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 13 Oct 2024 12:47:43 -0000 (UTC) Injection-Info: paganini.bofh.team; logging-data="204765"; posting-host="XBJBjenliTep7OIZ0g9xdw.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A"; User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 SeaMonkey/2.53.18.2 X-Notice: Filtered by postfilter v. 0.9.3 Bytes: 2111 Lines: 19 Thomas Koenig wrote: > Lynn McGuire <lynnmcguire5@gmail.com> schrieb: > >> I have 197 common blocks included from dedicated files and a massive >> 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. > > What do you use the equivalences for? Saving memory? Then this > 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. > Equivalences are an effective way of building data structures, you can do that with Common as well but sometimes equivalence is more suitable.