One question I have is that I am usually templating modules containing functions (rather than doing OO programming). I have found that simply using a templated module is not enough to instantiate the module - I seem to have to create a dummy type inside the module and declare a variable containing the dummy type to get the module to instantiate?
(the module functions are with an 'as' so in the calling code I dont use a templated cal - I just call the function name).
This seems to work OK but I wondered why it was designed that use'ing a templated module is not enough to instantiate it?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So I think I am getting the hang of using PyF95++ and have been able to sucessfully template my matlab interface : https://github.com/robince/MatlabAPI_lite
One question I have is that I am usually templating modules containing functions (rather than doing OO programming). I have found that simply using a templated module is not enough to instantiate the module - I seem to have to create a dummy type inside the module and declare a variable containing the dummy type to get the module to instantiate?
(the module functions are with an 'as' so in the calling code I dont use a templated cal - I just call the function name).
This seems to work OK but I wondered why it was designed that use'ing a templated module is not enough to instantiate it?
Thanks