Discussing the article: "From Basic to Intermediate: Template and Typename (II)"

 

Check out the new article: From Basic to Intermediate: Template and Typename (II).

This article explains how to deal with one of the most difficult programming situations you can encounter: using different types in the same function or procedure template. Although we have spent most of our time focusing only on functions, everything covered here is useful and can be applied to procedures.

In the previous article, "From Basic to Intermediate: Template and Typename (I)", we started talking about a rather complicated but very fascinating topic: creating templates for functions and procedures. Since this topic is quite difficult to consider and explain in several articles, we are going to divide it into more articles. However, we will not delve too deeply into this topic alone before proceeding to other ones that are no less interesting, because there are things that will only make sense if other topics are touched upon, as well.

But we will only work on this topic for a while, until we create a sufficiently solid and broad base so that we can move on to others, before returning to templates. After all, this topic is very extensive. In any case, it is necessary to clarify a few points that we did not mention in the previous article, precisely in order not to complicate the issue. I want you to feel comfortable studying each of these articles, and so that they help you start programming more correctly and safely, having at least a good understanding of each tool available in MQL5.

Although, much of what is being discussed here is applicable to other languages, due attention must be paid to appropriate application of these concepts.


Author: CODE X