Path: ...!3.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail From: R Daneel Olivaw 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: References: 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 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.