moosetechnology / FAST-Fortran

MIT License
0 stars 1 forks source link

`External` statement can have more than one name #217

Open lsafina opened 3 months ago

lsafina commented 3 months ago

Currently an External statement has property name -> String.

However, an External statement can specify several procedures or dummy procedures as external, and allows their symbolic names to be used as actual arguments.

Thus we should rather have a container of names.

To discuss: should these names be of String or of FASTFortranScalarVariable?

doc https://docs.oracle.com/cd/E19957-01/805-4939/6j4m0vn9d/index.html

NicolasAnquetil commented 3 months ago

Yes for the collection of names I would tend to make it a collection of String rather than FASTFortranScalarVariable but I am not completely sure about it.

Having an object (rather than a string) would allow to have a source anchor on it (but do we need it ?) Using FASTFortranScalarVariable is misleading as it is not a variable ...

I propose to try with a collection of strings for now and we re-consider if some new need appears

NicolasAnquetil commented 3 months ago

inviting @uNouss to the discussion

lsafina commented 3 months ago

due to FAMIX restrictions need to be modelled as a list of scalar variables