I have a class called waves and a function in that class called calc. I want to pass an object of type waves as a parameter to the calc function. I got an error stating 'objects are passed by reference only'. I searched the forum on how to pass an object by reference and was not able to find anything useful.
- Errors, bugs, questions
- Suggestions for MQL syntax
- Passing a dynamic object array via reference
jshumaker:
I have a class called waves and a function in that class called calc. I want to pass an object of type waves as a parameter to the calc function. I got an error stating 'objects are passed by reference only'. I searched the forum on how to pass an object by reference and was not able to find anything useful.
See this article, it would help.
I have a class called waves and a function in that class called calc. I want to pass an object of type waves as a parameter to the calc function. I got an error stating 'objects are passed by reference only'. I searched the forum on how to pass an object by reference and was not able to find anything useful.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register