In Fortran, when in extension definition, how to set a public procedure into private?
问题 Assume I first defined a type A in which a public procedure f is defined, and may also be bonded to A. In another module I have this type extended into B. However, when I use type B, I do not want f to be exposed. By the way, I don't want to use the submod technique. complement: Assume type(A) is already defined: module mA type::A ... contains procedure::f endtype endmodule In another module B, we extend A as: module mB use mA type,extends(A)::B ... endtype endmodule In this module, f may