Newsgroups: comp.lang.fortran
From: "James Van Buskirk" <not_va...@comcast.net>
Date: Tue, 13 May 2008 17:15:17 -0600
Local: Tues, May 13 2008 7:15 pm
Subject: Bitwise logical functions in gfortran
gfortran documents the intrinsic extension functions AND, OR, and
XOR. However, the documentation gives the impression that it permits mixed-mode operations between INTEGER and LOGICAL types. Also it doesn't emphasize that the functions are not elemental. C:\gfortran\test\intrinsics>type logical1.f90 C:\gfortran\test\intrinsics>gfortran logical1.f90 -ological1 write(*,*) and(3_1,[1,2,3,4]) write(*,*) and(.TRUE._1, 1_1) Not to mention that the functions don't seem to work for LOGICAL inputs: C:\gfortran\test\intrinsics>type logical2.f90 C:\gfortran\test\intrinsics>gfortran logical2.f90 -ological2 end program L -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||