[J3] Thoughts on the semantics of generics
Van Snyder
van.snyder at jpl.nasa.gov
Mon Aug 13 04:14:55 EDT 2018
On Sun, 2018-08-12 at 16:25 -0600, William Clodius via J3 wrote:
concerning instantiation of generic modules....
> it encourages the instantiation of essentially the same module in
> multiple contexts resulting in code bloat and compilation cascades.
An easy way users could avoid this is something like:
module MySpecificModule
use GenericModule(parameter1, parameter2, ...)
end module MySpecificModule
and then use MySpecificModule where you might be tempted to instantiate
GenericModule several different times with the same parameters.
This is a bit easier than instantiating a generic module as a specific
free-standing independent module. I suppose we could invent syntax to
do that, instead of this kludge.
More information about the J3
mailing list