Mql4 Editor Complie - Mql5 Ide Editor Complier Bug

Mehmet Ozhan Hastaoglu  
void Deneme(string x,int y) {}
void Deneme() {}
// Wrong complie
-----------------------------------------------

void Deneme() {}
void Deneme() {}
// Complie Error
-----------------------------------------------

It gives an error when compiling when two function names are the same. But it throws an error when there are variables.

Two functions with the same name should always throw an error when compiling.

Mohammed Abdulwadud Soubra  
Mehmet Ozhan Hastaoglu:

It gives an error when compiling when two function names are the same. But it throws an error when there are variables.

Two functions with the same name should always throw an error when compiling.

So dont repeat function names! 
Mehmet Ozhan Hastaoglu  
Mohammed Abdulwadud Soubra #:
So dont repeat function names! 

I'm not trying to show that it's a software bug.

I show compile error. If you try the examples you will understand me.

Fernando Carreiro  
Mehmet Ozhan Hastaoglu #: I'm not trying to show that it's a software bug. I show compile error. If you try the examples you will understand me.

Your topic subject heading, literately says "Complier Bug", so you are trying to show a "bug" and even qualify it with your statement, and I quote "Two functions with the same name should always throw an error when compiling".

I don't need to try the examples, as I already know and understand that no compile error will be given for the first two declarations (because they are valid), but compilation will fail for the last two declarations (because they are invalid).

It seems that it is you that is not understanding things, so I ask you again to please research function overloading — Documentation on MQL5: Language Basics / Functions / Function Overloading

Reason: