Dear users:
I am using the interface operator in a module, and it gives me problems
under HP-UX 10.20 if I use the "only" keyword in the use statment. Is it
a bug?
Example:
module myfunctions
interface operator(+)
module procedure SAplusX
end interface
.
.
.
.
end module myfunctions
then
program foo
use myfunctions
.
.
.
y=A+x !works
y=SAplusX(A,x) ! works
end program
but,
program foo
use myfunctions,only:SAxplusX
.
.
.
y=A+x ! doesn't work
y=SAplusX(A,x) ! works
end program foo
If I try to compile the second case I get something like this:
y=A+x ! doesn't work
^
Error : Non-numeric left operand of +, -, *, /, or ** operator
Thanks in advance for any help,
David
--
David R. Leal Valmana | Office: 10.1.02
Tel: (34)-916.24.93.14 | Fax: (34)-916.24.98.49
mailto:[log in to unmask] | http://jupiter.uc3m.es/~david/
Universidad Carlos III de Madrid | Dpto. de Estadistica y Econometria
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|