April 10, 2006 General » Re: auto classes and finalizers | |||
|---|---|---|---|
| |||
...dispose() method? Otherwise, said dtor would imply raii for the borrowed connection, which would be... | |||
April 10, 2006 General » GC and dtors ~ a different approach? | |||
|---|---|---|---|
| |||
...invocation via delete keyword - explicit invocation via raii dtor state 'unspecified': - implicitly called when no... | |||
April 10, 2006 General » Re: auto classes and finalizers | |||
|---|---|---|---|
| |||
...ConnectionUsage wherever you need one. Both are RAII. ConnectionPool acts as a factory for ConnectionUsage... | |||
April 09, 2006 General » Re: auto classes and finalizers | |||
|---|---|---|---|
| |||
...of a dtor implies "auto" (and thus raii), how does one manage a "pool" of... | |||
April 09, 2006 Learn » Re: Clarifcation on AA allocation | |||
|---|---|---|---|
| |||
...willing to settle for an easy solution, RAII via classes would work:
class HandleWrapper
{
HANDLE... | |||
April 06, 2006 General » Re: auto classes and finalizers ~ dtor means RAII ? | |||
|---|---|---|---|
| |||
...cleanup needs to be done, making it RAII be definition, no? And any class containing... | |||
April 06, 2006 General » Re: auto classes and finalizers ~ dtor means RAII ? | |||
|---|---|---|---|
| |||
...are actually scoped on the stack (for RAII purposes), where the enclosing function doesn't... | |||
April 06, 2006 General » Re: auto classes and finalizers ~ dtor means RAII ? | |||
|---|---|---|---|
| |||
FWIW, I fully agree. Yes, and thinking of a class that needs "destructing", which then... | |||
April 06, 2006 General » Re: auto classes and finalizers ~ dtor means RAII ? | |||
|---|---|---|---|
| |||
...is that this wouldn't make the RAII behaviour apparent to somebody reading the code... | |||
April 06, 2006 General » Re: auto classes and finalizers ~ dtor means RAII ? | |||
|---|---|---|---|
| |||
...the class RAII indicator? Thus, any class with a dtor is automatically RAII. When the... | |||
Copyright © 1999-2021 by the D Language Foundation