November 28, 2006 General » Re: scope + destructor with Exception parameter for RAII | |||
|---|---|---|---|
| |||
I think this works under DMD
try
{
throw new Error("some stuff");
}
catch(Error e... | |||
November 28, 2006 General » Re: scope + destructor with Exception parameter for RAII | |||
|---|---|---|---|
| |||
I don't like it, personally. It doesn't seem a good idea for a... | |||
November 28, 2006 General » scope + destructor with Exception parameter for RAII | |||
|---|---|---|---|
| |||
...exit/success/failure) and you have a RAII as complete as Python's 'with' statement... | |||
November 27, 2006 Announce » Re: DMD 0.175 release | |||
|---|---|---|---|
| |||
...is no dtor to call? (sometimes the RAII isn't needed, but the speed is). | |||
November 26, 2006 Announce » Re: DMD 0.175 release | |||
|---|---|---|---|
| |||
Not. But it will get RAII destructed. | |||
November 24, 2006 General » Re: OSNews article about C++09 degenerates into C++ vs. D discussion | |||
|---|---|---|---|
| |||
...handles and locks, etc when using an RAII approach. The GC cannot know what order... | |||
November 24, 2006 General » Re: OSNews article about C++09 degenerates into C++ vs. D discussion | |||
|---|---|---|---|
| |||
...in D. You can't really do RAII except in the slightly defeating-the-point... | |||
November 23, 2006 c++.stlsoft » using scoped_handle | |||
|---|---|---|---|
| |||
...that I cannot use scoped_handle as RAII, but only as a separate object defined... | |||
November 23, 2006 General » Re: OSNews article about C++09 degenerates into C++ vs. D discussion | |||
|---|---|---|---|
| |||
...Even techniques that I consider commonplace, like RAII, seem to be unknown to many/most... | |||
November 22, 2006 General » Re: OSNews article about C++09 degenerates into C++ vs. D discussion | |||
|---|---|---|---|
| |||
...that unfair. D has good support for RAII now - possibly better than C++'s on... | |||
Copyright © 1999-2021 by the D Language Foundation