Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version Tektronix Network News Daemon (B 2.10.2 based); site tektronix.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!harpo!decvax!tektronix!kurtk From: kurtk@tektronix.UUCP (Kurt Krueger) Newsgroups: net.micro.pc,net.lang.f77 Subject: Re: stupid problem in fortran Message-ID: <5318@tektronix.UUCP> Date: Thu, 25-Apr-85 15:28:57 EST Article-I.D.: tektroni.5318 Posted: Thu Apr 25 15:28:57 1985 Date-Received: Sat, 27-Apr-85 04:40:23 EST References: <370@sdchema.UUCP> <614@utcs.UUCP> Reply-To: kurtk@tektronix.UUCP (Kurt Krueger) Organization: Tektronix, Beaverton OR Lines: 23 Xref: watmath net.micro.pc:3774 net.lang.f77:269 Summary: This is in response to the fact that statements like: var = 'x' // var generally don't work as expected. The following is an excerpt from a CDC fortran manual (and CDC has done a very good job of implementing the standard Fortran 77): Character assignment statement v = exp .... None of the character positions being defined in v can be referenced in exp. Personal comment: I too feel that the problem should be considered a bug, but it appears that the intent of the standard is to disallow this type of usage. I can also see an implementation headache for the compiler writer. The only solution is to use a temporary variable. A longer term solution would be to let your feelings be known to the ANSI committee so that f8x standard would allow this.