I
Ilya Kalistru
Hi everyone!
I have a module, that makes some actions with signal S of the type myType. This actions with signal S is independent of its type.
For using this modules for signals of various types I create a copies of module with another name and "Find and replace" myType to MyOtherType.
I think that it is conceptually wrong way.
Is there a way to define a signal of abstract data type and substitute the correct type in place abstract when I need use it? May I use "generic" for this purpose?
I have a module, that makes some actions with signal S of the type myType. This actions with signal S is independent of its type.
For using this modules for signals of various types I create a copies of module with another name and "Find and replace" myType to MyOtherType.
I think that it is conceptually wrong way.
Is there a way to define a signal of abstract data type and substitute the correct type in place abstract when I need use it? May I use "generic" for this purpose?