Search

May 03, 2009
General »
RAII can be implemented even with reference semantics. The mechanics would involve reference counting.

Andrei
May 03, 2009
General »
...a destructor is called.  RAII is a transitive feature.  When a RAII variable is destroyed...
May 03, 2009
General »
...0400, Rainer Deyke <rainerd@eldwood.com> wrote:

RAII is all about stack allocation over heap...
May 03, 2009
General »
...cannot.

It's meaningless to talk about RAII in the context of the "struct" part...
May 03, 2009
General »
...chunk of ram. The first part is RAII, the second part is not possible, since...
May 02, 2009
General »
...T'.

The D1 dynamic array type does not support RAII.


-- 
Rainer Deyke - rainerd@eldwood.com
May 02, 2009
General »
...One less layer of indirection.
  - No long distance dependencies.
  - RAII.


-- 
Rainer Deyke - rainerd@eldwood.com
April 30, 2009
General »
These are collections. RAII doesn't matter when you have a garbage collector and the...
April 30, 2009
General »
...Supports timely destruction of contents (i.e. RAII).

I like this optimization and use it...
April 29, 2009
General »
...Foo)();  // auto used to be used for RAII (DMD 0.043)
       auto  temp2  = new scope...
93 94 95 96 97 98 99 100 101 102 103 104
Next ›   Last »