[Issue 10344] Exiting _Dmain should flush all FILE*s and return nonzero on failure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 14 13:43:29 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10344
Koroskin Denis <2korden at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |2korden at gmail.com
--- Comment #4 from Koroskin Denis <2korden at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list