Thread: MQL4 Learning
View Single Post
  #515 (permalink)  
Old 11-30-2008, 10:58 PM
67-17454 67-17454 is offline
Senior Member
 
Join Date: Apr 2006
Location: Oregon
Posts: 116
67-17454 is on a distinguished road
Void vs. Int

For a function, including start(), etc. is there any benefit or consequence to having it as an in ("int start()") versus a void ("void start()") if you never check the result of the returned result of the function?

I see many functions that are routinely defined as an int (init(), deinit(), start())but the value is never checked. I don't know if it is just wasted cycles (albeit tiny ones) in having them as int versus void.

Thanks.
Reply With Quote