Make Private Entity Public

Description:  Changes a module variable or subprogram from PRIVATE to PUBLIC visibility, and checks that it won't conflict with any existing name where that module is USEd.

State: Implemeted         Author: Kurt Hendle      Version:   Photran 6.0

Code Example:

    module module2
   implicit none
   ! integer1 and integer3 cannot be made public w/o ONLY clause
   ! integer2 and integer4 can be made public
   integer, private :: integer1, integer2
   integer :: integer3, integer4
   private :: integer4, integer3
end module

   module module2
   implicit none
   ! integer1 and integer3 cannot be made public w/o ONLY clause
   ! integer2 and integer4 can be made public
   integer, private :: integer2
   integer, public :: integer1
   integer :: integer3, integer4
   private :: integer4, integer3
end module

ScreenShots

      

HTML Comment Box is loading comments...