GC object finalization not guaranteed
Leandro Lucarella
llucax at gmail.com
Sat Apr 18 14:54:43 PDT 2009
Walter Bright, el 18 de abril a las 14:34 me escribiste:
> 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.
Then, why allowing finalizers in non-scope objects? It's a little
confusing...
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
The biggest lie you can tell yourself is
When I get what I want I will be happy
More information about the Digitalmars-d
mailing list