[Prev][Next][Index]

No Subject



Hi, Beate:

Yes, if I move the statement "last=..." as you said, the program 
works fine. But it is really triky, though. Do we have a way to
let pointers "float" with program transformation ?

My other question is: to what extent the Sage++ can handle
Fortran 90 syntax ? It seems the f2dep does not like such
Fortran 90 features as free format, statements separated by
semicolon on the same line, ... and it can parse the following
program:

        program test
        type id
          character name(20)
          integer ssn
        end type id
        integer a(20),b(40)
        logical c(20)
        type(id) :: license 
        a(1:20) = b(1:40:2) + 1
        license%name = 'JOHN OLSON'
        license%ssn = 123456
        end

but unparse gives me:

      program test
      type id			!The body of type-def is missing
      integer  a(20),b(40)
      logical  c(20)
      type (id) license
      a(1:20) = b(1:40:2) + 1
      license%name = 'JOHN OLSON'
      license%ssn = 123456
      end