Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for implicit types? #201

Open
hckiang opened this issue Jul 2, 2021 · 0 comments
Open

Support for implicit types? #201

hckiang opened this issue Jul 2, 2021 · 0 comments

Comments

@hckiang
Copy link

hckiang commented Jul 2, 2021

Hi, I am currently working on a project which uses a lot of old-style implicit variable types. For example:

module oumods
  use, intrinsic :: iso_c_binding
  implicit integer(c_int) (i-k), integer(c_int) (m,n), &
       & real(c_double) (a-h), real(c_double) (l), real(c_double) (o-z)
contains
  subroutine zI12(t,c,alpha,beta,r)
    complex(c_double_complex) c,r,    x,y,z
     z = c*t
     y = exp(z)
     x = (2.0_c_double * cosh((z - cmplx(0._c_double,3.14159265358979324_c_double, kind(1._c_double))) &
          & /2._c_double )) / (c / exp((z + cmplx(0._c_double,3.14159265358979324_c_double,kind(1._c_double)))/2._c_double))
     r = beta*r+alpha*((t*y - x)/c)
  end subroutine
end module

Currently the server seems unable to tell the type of variables t, alpha and beta.

I know ideally I should simply add explicit type declarations, but the existing code base is pretty large and complex so I'd rather not mess with it too much... It would be an very useful feature for the IDE to be able to display the types of them so the programmer doesn't need to "mentally calculate" the types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant