http://d.puremagic.com/issues/show_bug.cgi?id=10344


Koroskin Denis <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]


--- Comment #4 from Koroskin Denis <[email protected]> 2013-06-14 13:43:26 PDT 
---
Will that affect int main() { .. } functions as well?

Consider the following example:

int main()
{
   Result result = doLogic(); // does some logic, uses writeln() to indicate
progress
   return mapResultToReturnCode(result);
}

Let's say it's a video encoding program, and is a part of a longer toolchain
(some other program will do something else based on return code).

Will writeln()/flush() hijack main return code even though the programmer
EXPLICITLY returned something else?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to