Assignment to an inherited structure - page 3

 
Alain Verleyen #:
Could you explain why you want to inherit while your (example) code doesn't seem to use inheritance ? It's not to insist about bad or best practice, I am just curious and maybe I could learn something new.
I tried to explain this in my previous comment. In practice, of course, I use inheritance (inherited methods), but here I deliberately omitted everything that is not relevant to the problem in order to focus on the problem and simplify things. In practice, I am not so much concerned with the MqlDateTime structure as with user structures, but the principle is the same.