Path: ...!npeer.as286.net!npeer-ng0.as286.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Gary Scott 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 09:12:15 -0500 Organization: A noiseless patient Spider Lines: 22 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 16:12:15 +0200 (CEST) Injection-Info: dont-email.me; posting-host="ea27c3c1750a04fef8632e06e0e96d9f"; logging-data="743487"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ly0OgzOgTyHHXQqdfcGXhGpXonO4ZSxc=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:io1mgv8NC6PDBcbVB2Bu7NxOrL0= In-Reply-To: Content-Language: en-US Bytes: 2308 On 10/13/2024 7:18 AM, 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. About the only thing I've used it for is for performing mathematical operations on things like characters for encryption or compression algorithms. Using a function for that doesn't appeal to me. > > 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.