Search

October 27, 2006
Learn »
...ROUNDTOZERO);
:
:
:
 setRoundingMode(oldmode);
}

It's a classic RAII situation.
In C++, you'd do it...
October 16, 2006
Learn »
...explicitly delete it or use 'auto' (meaning RAII this time).

e.g.

  void somefunc()
  {
    auto...
September 29, 2006
General »
...them, before they realise that the acronym RAII is a filthy lie. Akin only to...
September 29, 2006
General »
...search the D newsgroup archives here on RAII. I promise you you'll be both...
September 29, 2006
General »
...anyone listening:

RAII stands for Resource Allocation Is Initialization.  You can do RAII without automatically...
September 29, 2006
General »
...but I still think we can use RAII + c-heap. We just need 1 extra...
September 29, 2006
General »
Couldn't we use malloc/free + RAII for that? ...auto_ptr<>?
September 29, 2006
General »
...y = 20;
auto var f = new Foo(); // this will be RAII and automatically
type-determined

September 29, 2006
General »
...newsgroups, it seems like 'auto' as local raii and 'auto' as
automatic type deduction are...
September 14, 2006
General »
...It isn't the RAII pattern, but it can replace the RAII pattern in many...
123 124 125 126 127 128 129 130 131 132 133
Next ›   Last »