May 28, 2007 Issues » [Issue 1250] New: std.stream.BufferedFile should have a destructor with close() | |||
|---|---|---|---|
| |||
...do a bunch of writes // hope f gets closed by RAII magic (it won't) } -- | |||
May 19, 2007 General » Re: RAII who? | |||
|---|---|---|---|
| |||
Linky: http://en.wikipedia.org/wiki/RAII | |||
May 19, 2007 General » Re: RAII who? | |||
|---|---|---|---|
| |||
Also, in the face of possible exceptions, it is much cleaner to use scope than... | |||
May 19, 2007 General » Re: RAII who? | |||
|---|---|---|---|
| |||
...exit) closeFile(). I think the need for RAII objects in D (and destructors in this... | |||
May 19, 2007 General » Re: RAII who? | |||
|---|---|---|---|
| |||
Thanks for the explanation Daniel en Lutger. Some new qestions come to my mind. Since... | |||
May 19, 2007 General » Re: RAII who? | |||
|---|---|---|---|
| |||
Forget to mention, this is in C++ not in D. | |||
May 19, 2007 General » Re: RAII who? | |||
|---|---|---|---|
| |||
...scope classses they are, so these are more useful for RAII, for example file handles. | |||
May 19, 2007 General » Re: RAII who? | |||
|---|---|---|---|
| |||
...to trigger RAII, but not any more. Now you want the 'scope' keyword. RAII instances... | |||
May 19, 2007 General » RAII who? | |||
|---|---|---|---|
| |||
...a default value is this part of RAII? Or has it nothing to do with... | |||
May 12, 2007 Learn » Re: Singleton pattern in D | |||
|---|---|---|---|
| |||
...having the skeleton available and use the RAII to make the singleton only available when... | |||
Copyright © 1999-2021 by the D Language Foundation