August 13, 2023 Learn » Re: std.experimental.allocator | |||
|---|---|---|---|
| |||
It's almost good, unfortunately it uses RAII.. wich is a red flag for me... | |||
June 16, 2023 Learn » Re: C++'s this() equivalent? | |||
|---|---|---|---|
| |||
...reply. This should be enough, as this type of RAII is basically a `temporary struct`. | |||
June 15, 2023 Learn » Re: C++'s this() equivalent? | |||
|---|---|---|---|
| |||
...similar to RAII in C++ even if you can't actually have RAII. Probably the... | |||
June 15, 2023 Learn » Re: C++'s this() equivalent? | |||
|---|---|---|---|
| |||
...call factory function All my uses of RAII depend on copy construction and destruction. Construction... | |||
June 16, 2023 Learn » Re: C++'s this() equivalent? | |||
|---|---|---|---|
| |||
...Steve How can `factory functions` be used to achieve effects similar to `'RAII'`? Thank you. | |||
June 15, 2023 Learn » Re: C++'s this() equivalent? | |||
|---|---|---|---|
| |||
D was not originally designed with RAII. That was added later (D1 structs did not... | |||
June 16, 2023 Learn » Re: C++'s this() equivalent? | |||
|---|---|---|---|
| |||
...user, it is very terrible to simplify `RAII` without such a method. Why must `this... | |||
June 16, 2023 Learn » Re: C++'s this() equivalent? | |||
|---|---|---|---|
| |||
...BetterC`,. The purpose is mainly to complete `RAII`, completing one part of the work after... | |||
June 16, 2023 Learn » Re: C++'s this() equivalent? | |||
|---|---|---|---|
| |||
...int i)`is inconsistent and cannot achieve similar `RAII` as `C++`. What should I do? | |||
May 21, 2023 General » Re: Feedback from the Gripes and Wishes Campaign | |||
|---|---|---|---|
| |||
...question is if it would be just as easy with a GC based on RAII. | |||
Copyright © 1999-2021 by the D Language Foundation