mql5 structs not flexible, no struct refence variable - page 2

 
Fernando Carreiro #:

In terms of efficiency, they are basically the same on C++, but don't know how MQL handles them.

I just prefer using structures for simplicity because it assumes public access.

i see tx

 

ok think my working model for this problem is around high perf code i will just always start my types as structs.

With the design ready to adapt if later i need to change it to class. 


i do the same for class variable scope, i like simple rules that i can switch off brain and just code, i always start class variables as private, then change to protected, public as required.

then i dont have to think about it,  as am listening to thriller audio book on YouTube whilst coding and trading.