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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.