May 31, 2017 General » Re: Bad array indexing is considered deadly | |||
|---|---|---|---|
| |||
...not even work. And even if it does, things like RAII may not work. -Steve | |||
May 30, 2017 General » Re: A Few thoughts on C, C++, and D | |||
|---|---|---|---|
| |||
...needs", "this hold me back", "kill GC", "I can't live without in-built RAII", ... | |||
May 30, 2017 General » Re: Built-in RAII in D | |||
|---|---|---|---|
| |||
On Tuesday, 30 May 2017 at 10:30:13 UTC, qznc wrote: That was the... | |||
May 30, 2017 General » Re: Built-in RAII in D | |||
|---|---|---|---|
| |||
I agree. Currently, a good answer is to direct people to the "Don't fear... | |||
May 29, 2017 General » Re: Built-in RAII in D | |||
|---|---|---|---|
| |||
+1(billion) | |||
May 30, 2017 Learn » Re: RAII pointers | |||
|---|---|---|---|
| |||
I've found this pattern works rather well:
module frontendparametersptr;
struct FrontendParametersPtr
{
// No constructors, initialization... | |||
May 30, 2017 Learn » Re: RAII pointers | |||
|---|---|---|---|
| |||
Yes, I generally use structs with `@disable this(this)` and std.algorithm.mutation.move for... | |||
May 30, 2017 Learn » Re: RAII pointers | |||
|---|---|---|---|
| |||
std.stdio.File does basically the same thing with C's FILE* | |||
May 30, 2017 Learn » RAII pointers | |||
|---|---|---|---|
| |||
...but wrap a primitive pointer to give RAII handling of resources. For example:
class Dvb... | |||
May 29, 2017 General » Re: A Few thoughts on C, C++, and D | |||
|---|---|---|---|
| |||
...of course) and without object lifetimes, no RAII. Doing this manually sucks, yeah, but I... | |||
Copyright © 1999-2021 by the D Language Foundation