How do I create a new file using phobos ?

torhu no at spam.invalid
Sat Sep 22 10:20:49 PDT 2007


Jarrett Billingsley wrote:
> "Bill Baxter" <dnewsgroup at billbaxter.com> wrote in message 
> news:fd27j5$87u$1 at digitalmars.com...
>>
>> Aw dangit.  Now I've got to go grep through all my code to find everywhere 
>> I've used a scope BufferedFile.  :-(
>>
> 
> I'm actually very surprised that BufferedFile doesn't have a dtor which 
> flushes and then closes its file.  File's dtor closes itself. 
> 
> 

It's a bit annoying, yeah.  I think it's because the member object might 
already be deleted when the containing object's destructor gets called. 
  Can't remember the exact reason for this limitation, but I think it's 
documented somewhere.



More information about the Digitalmars-d mailing list