delete and MmFile
NewName
b5353166 at nwldx.com
Sat Jan 28 19:20:40 PST 2012
Hello everybody.
So I heard that `delete' is being deprecated?
If that's true, what can I do to close an MmFile?
Or is there another way to create an MmFile object, other than with `new', so
that it gets destroyed when out of scope?
My problem is, I need to reopen the same file outside an if() block. If the
conditional is entered and I don't delete the MmFile in it, my program will
crash at runtime.
Presumably for trying to map the same file twice.
Thank you.
More information about the Digitalmars-d-learn
mailing list