T will be checked in compile-time. No additional runtime checks will be performed.
T may be saved in function call, or class instantiation, for runtime checking.
Create std::map<std::string, std::string> m_genericTypes; in Compiler::Variable.
Create std::vector<std::string> genericTypes; in Function, NativeFunction and in Class (when its ready)
Example:
T
will be checked in compile-time. No additional runtime checks will be performed.T
may be saved in function call, or class instantiation, for runtime checking.Create
std::map<std::string, std::string> m_genericTypes;
inCompiler::Variable
. Createstd::vector<std::string> genericTypes;
inFunction
,NativeFunction
and inClass
(when its ready)