Working with derived types
Christopher Dimech
dimech.christopher@gmail.com
Fri May 29 16:52:00 GMT 2015
Good evening,
I want to implement an interval derived type. It will have two member
objects, inf and sup.
One can easily implement the thing in this way.
Type (Interval)
Real :: inf
Real :: sep
End Type
However I want to allow having intervals of different
types, with Real (Real64) :: inf ...
One can think op perhaps having Interval_Real32, Interval_Real64 ...
Would there be a neat way for how this functionality can be accomplished?
--
Christopher Dimech
More information about the Fortran
mailing list