home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!umn.edu!mmm.serc.3m.com!mmc.mmmg.com!timbuk.cray.com!walter.cray.com!gerardo
- From: gerardo@ferris.cray.com (Gerardo Cisneros)
- Newsgroups: comp.lang.fortran
- Subject: Re: How does one return a logical value...???
- Message-ID: <1992Nov18.085618.23750@walter.cray.com>
- Date: 18 Nov 92 14:56:18 GMT
- References: <BxwrJC.GME@cs.uiuc.edu> <1edccoINNkab@early-bird.think.com>
- Sender: gerardo@ferris (Gerardo Cisneros)
- Organization: Cray Research, Inc.
- Lines: 22
- Originator: gerardo@ferris
- Nntp-Posting-Host: ferris.cray.com
-
-
- In article <1edccoINNkab@early-bird.think.com>, sandee@Think.COM (Daan Sandee) writes:
- > In article <BxwrJC.GME@cs.uiuc.edu>, ctaylor@cs.uiuc.edu (Conrad W Taylor) writes:
- > |> IF (CheckActivity(previous, ROWS, COLS) .EQ. .TRUE.) THEN
- > |> uncontrol = uncontrol + 1
- > |> ENDIF
- > |>
- > |> My compiler says that I have mixed types when I use .TRUE. .
- >
- > I don't know why it would object to .TRUE. Like that, (CAPITALS, dots
- > immediately adjoining the keyword (yes, I've known compilers to complain
- > about . TRUE .)) it is standard Fortran. [...]
-
- It is not standard Fortran. ANSI X3.9-1978 allows relational expressions
- e1 relop e2 only for e1 and e2 both arithmetic expressions or both
- character expressions. If CheckActivity is really declared as a LOGICAL
- FUNCTION, then there is no need (and no point) to compare it to .TRUE.
- --
- Gerardo Cisneros |Cray Research de M'exico, S.A. de C.V.
- gerardo.cisneros@cray.com |Camino a Sta. Teresa 480-A #302
- (+52+5)622-8584 |14020 Tlalpan, D.F., MEXICO
- Anything I said sound like an opinion? Then it's no one's but my own.
-