If we will have something like *scoped destructor* (that will be
executed at scope exit) could it help to release some resources?
I worry about this problem too because even using class to hold
resource I expirience some *delays* in relesing them. For example
I have database connection opened. And I want to close it when I
finished my job. Relying on GC I sometimes experiece problems
like *too many DB connections*, because GC frees it not enough
quickly.
- Re: GC: memory collected but destru... Steven Schveighoffer via Digitalmars-d
- Re: GC: memory collected but d... Rainer Schuetze via Digitalmars-d
- Re: GC: memory collected b... Steven Schveighoffer via Digitalmars-d
- Re: GC: memory collect... Shachar Shemesh via Digitalmars-d
- Re: GC: memory col... Steven Schveighoffer via Digitalmars-d
- Re: GC: memory collected but d... Shachar Shemesh via Digitalmars-d
- Re: GC: memory collected b... via Digitalmars-d
- Re: GC: memory collect... Shachar Shemesh via Digitalmars-d
- Re: GC: memory col... via Digitalmars-d
- Re: GC: memory collected b... Steven Schveighoffer via Digitalmars-d
- Re: GC: memory collect... Uranuz via Digitalmars-d
- Re: GC: memory col... via Digitalmars-d
- Re: GC: memory col... Steven Schveighoffer via Digitalmars-d
- Re: GC: memory collected but d... eles via Digitalmars-d