April 17, 2006 General » Re: auto classes and finalizers ~ dtor means RAII ? | |||
|---|---|---|---|
| |||
...a problem. I think having lazy GC, RAII, manual memory management and ref. counting would... | |||
April 15, 2006 Learn » Differing implementations for a function in two interfaces | |||
|---|---|---|---|
| |||
...the moment I do this:
#// handle wrapper, RAII
#class Command {
# sqlite3_stmt* stmt;
# ~this() { sqlite3... | |||
April 13, 2006 General » Re: GC and dtors ~ a different approach? | |||
|---|---|---|---|
| |||
...much better than plain malloc/free). [Note: RAII's auto = scope(exit)] You would have... | |||
April 13, 2006 General » Re: auto classes and finalizers | |||
|---|---|---|---|
| |||
...I don't find at all that RAII collection is "implicit" or "without writing any... | |||
April 10, 2006 General » Re: GC and dtors ~ a different approach? | |||
|---|---|---|---|
| |||
...be collected lazily? In other words, where raii or delete could not be applied appropriately? | |||
April 10, 2006 General » Re: GC and dtors ~ a different approach? | |||
|---|---|---|---|
| |||
...d at some appropriate point, or have raii applied to it. Classes with dtors that... | |||
April 10, 2006 General » Re: auto classes and finalizers | |||
|---|---|---|---|
| |||
...for a dispose() pattern goes away ('delete'/raii takes over), expensive resources that should be... | |||
April 10, 2006 General » Re: auto classes and finalizers | |||
|---|---|---|---|
| |||
...without writing any code", which covers both RAII and GC cleanup (if you're lucky... | |||
April 10, 2006 General » Re: auto classes and finalizers | |||
|---|---|---|---|
| |||
...overlooked but the obvious ones, 'delete' and raii, now invoke the dtor whereas normal collection... | |||
April 10, 2006 General » Re: auto classes and finalizers | |||
|---|---|---|---|
| |||
...a normal collection cycle. Invoking delete or raii just works as always, yet the invalid... | |||
Copyright © 1999-2021 by the D Language Foundation