reddit discussion on replacing Python in 0install
Steven Schveighoffer
schveiguy at yahoo.com
Wed Jun 12 11:36:54 PDT 2013
On Wed, 12 Jun 2013 11:56:59 -0400, Walter Bright
<newshound2 at digitalmars.com> wrote:
> On 6/12/2013 8:34 AM, Steven Schveighoffer wrote:
>> On Wed, 12 Jun 2013 11:32:58 -0400, Andrei Alexandrescu
>> <SeeWebsiteForEmail at erdani.org> wrote:
>>
>>> I agree performance is not a problem. But it's just weird behavior. We
>>> should
>>> flush stdout termination, anything else would have to be carefully
>>> justified -
>>> and this is not.
>>
>> stdout is flushed on termination. Your code just doesn't puke a stack
>> trace if
>> there is an issue after main exits.
>
> There is main(), and then there is _Dmain(). Take a look at
> druntime/src/rt/dmain2.d
I don't get the point.
Upon process termination, the C runtime flushes stdout/stderr.
There is no reason to reinvent this wheel.
-Steve
More information about the Digitalmars-d
mailing list