Passing each individual args into a constructor when you have 10 or more is tedious and not very maintainable - also makes reading the constructor args quite a drag.
The pattern I want to use is commonly used in Ruby/Node/Python and was hoping there was something similar in MQL4
So I want to pass a key value pair object to the constructor with all the args. Unfortunately I am getting -
struct cannot be defined in param list.
from the compiler.
I am a total n00b at C and this is my first MetaQuotes4 programme(EA) attempt. I have Googled and trawled the docs. Can't find a thing besides the docs saying that passing classes, arrays and structs can only be done using pass by reference.
The issue is line 10.
it's loaded with compile errors - due to this being a WIP. The rest of the errors I can handle but the struct not allowed in params issue has me baffled. Any help or advice would be awesome.
Maybe there is an alternative pattern?
Thanks in advance.
