GC object finalization not guaranteed

Walter Bright newshound1 at digitalmars.com
Sat Apr 18 14:34:14 PDT 2009


Leandro Lucarella wrote:
> Close a connection gracefully for example, I guess (I mean, send a "bye"
> packed, not just close the socket abruptly). Same for closing files
> writing some mark or something. They can be risky when finalization is not
> deterministic though.

Scoped objects should be used for that, not gc.



More information about the Digitalmars-d mailing list