reddit discussion on replacing Python in 0install
Steven Schveighoffer
schveiguy at yahoo.com
Wed Jun 12 08:19:09 PDT 2013
On Wed, 12 Jun 2013 08:26:43 -0400, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> On 6/11/13 10:07 PM, Steven Schveighoffer wrote:
>> On Tue, 11 Jun 2013 17:36:24 -0400, Denis Koroskin <2korden at gmail.com>
>> wrote:
>>> The best solution would be for writeln() to throw on use, and I think
>>> it's fairly easy to implement: just flush once after using the file
>>> descriptor for the first time, and throw if it fails.
>>
>> This is a good idea.
>>
>> I think you meant "just flush once after using the FILE * for the first
>> time"
>>
>> -Steve
>
> Yah, but now we're looking at extra state associated with each file etc.
There is room. Each File is allocated on the heap.
> Also it's kind of unexpected.
According to this whole conversation, it is expected :)
-Steve
More information about the Digitalmars-d
mailing list