Type detection: Difference between revisions
m
→Unlimited data polymorphism
Line 575:
Legacy versions of Fortran have ways to store data of one type in a variable declared as some other type, and this mechanism could be employed.
===Unlimited
Below I use ‘class(*)’. The ‘print_text’ subroutine is used to print a string, an array of strings, and an input file.
|