March 21, 2016 Learn » Re: Something wrong with GC | |||
|---|---|---|---|
| |||
Those arrays are for RAII-style deterministic memory release, they shouldn't be freely mixed... | |||
March 20, 2016 General » Re: Jai - interesting programming language | |||
|---|---|---|---|
| |||
...produce relatively few errors" Later: "Abstractions like RAII, constructors and destructors, polymorphism, and exceptions were... | |||
March 09, 2016 General » Re: A comparison between C++ and D | |||
|---|---|---|---|
| |||
...it goes on the heap. It uses RAII to manage the lifetime of the lambda... | |||
March 09, 2016 General » Re: A comparison between C++ and D | |||
|---|---|---|---|
| |||
...C++11. I think not having an RAII wrapper for lambdas similar to std::function... | |||
March 09, 2016 Learn » Re: RAII and classes | |||
|---|---|---|---|
| |||
Ok, I forgot std.typecons.scoped, nothing to see here ..... | |||
March 09, 2016 Learn » Re: RAII and classes | |||
|---|---|---|---|
| |||
That's almost literally what std.typecons.scoped does. | |||
March 09, 2016 Learn » RAII and classes | |||
|---|---|---|---|
| |||
...C++-like RAII needs:
class A
{
~this(){ import std.stdio; writeln("hello"); }
}
auto RAII(T... | |||
February 13, 2016 General » Re: D's equivalent to C++'s std::move? | |||
|---|---|---|---|
| |||
...if you implement exception safe RAII, which you should. RAII ensures that it will be... | |||
February 11, 2016 General » Re: D's equivalent to C++'s std::move? | |||
|---|---|---|---|
| |||
...situation occurs a lot for me, and RAII plus move semantics are pretty close to... | |||
February 07, 2016 Learn » Re: Detecting exception unwinding | |||
|---|---|---|---|
| |||
...scope(failure)" is useful for C-like APIs, but not a good replacement for RAII. | |||
Copyright © 1999-2021 by the D Language Foundation