karp wak:
The compiler does not detect the following error and compiles the code without warnings.
When I create a class like this:
and then I want to instantiate it and forget to use the word "new" as follows.
Compiles without problems and then there is a runtime exception.
I hope you can fix it in future versions.
Thank you!! :-)
There is nothing to fix except your code. The compiler is fine.
Eventually a warning.
Alain Verleyen:
There is nothing to fix except your code. The compiler is fine.
Eventually a warning.
Yes, a warning will be very helpful.
Thank you so much Alain
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
The compiler does not detect the following error and compiles the code without warnings.
When I create a class like this:
and then I want to instantiate it and forget to use the word "new" as follows.
Compiles without problems and then there is a runtime exception.
I hope you can fix it in future versions.
Thank you!! :-)