How do I create a new file using phobos ?
Janice Caron
caron800 at googlemail.com
Sat Sep 22 13:36:54 PDT 2007
On 9/22/07, Bill Baxter <dnewsgroup at billbaxter.com> wrote:
> Exactly. The GC can't guarantee any particular order of destruction so
> members may be destroyed before their parents.
> So basically BufferedFile cannot try to refer to it's File member in the
> destructor.
>
> This is why we need some way to distinguish between deterministic
> destruction and regular gc-drived destruction as per Daniel's
> suggestion. Another suggestion made previously was to give the dtor an
> argument that indicated whether it was a deterministic destruction or not.
I'd vote for
scope ~this()
{
/* for scope objects, called when the object goes out of scope */
}
More information about the Digitalmars-d
mailing list