Search

May 28, 2007
Issues »
...do a bunch of writes
  // hope f gets closed by RAII magic (it won't)
}


-- 
May 19, 2007
General »
Linky:

http://en.wikipedia.org/wiki/RAII
May 19, 2007
General »
Also, in the face of possible exceptions, it is much cleaner to use scope than...
May 19, 2007
General »
...exit) closeFile().

I think the need for RAII objects in D (and destructors in this...
May 19, 2007
General »
Thanks for the explanation Daniel en Lutger.

Some new qestions come to my mind. Since...
May 19, 2007
General »
Forget to mention, this is in C++ not in D.
May 19, 2007
General »
...scope classses they are, so these are more useful for RAII, for example file handles.
May 19, 2007
General »
...to trigger RAII, but not any more. Now you want the 'scope' keyword.

RAII instances...
May 19, 2007
General »
...a default value is this part of RAII? Or has it
nothing to do with...
May 12, 2007
Learn »
...having the skeleton available and use the RAII to make the singleton only available when...
104 105 106 107 108 109 110 111 112 113 114
Next ›   Last »