Search

May 31, 2017
General »
...not even work. And even if it does, things like RAII may not work.

-Steve
May 30, 2017
General »
...needs", "this hold me back", "kill GC", "I can't live without in-built RAII", ...


May 30, 2017
General »
On Tuesday, 30 May 2017 at 10:30:13 UTC, qznc wrote:

That was the...
May 30, 2017
General »
I agree.

Currently, a good answer is to direct people to the "Don't fear...
May 29, 2017
General »
+1(billion)
May 30, 2017
Learn »
I've found this pattern works rather well:

module frontendparametersptr;

struct FrontendParametersPtr
{
    // No constructors, initialization...
May 30, 2017
Learn »
Yes, I generally use structs with `@disable this(this)` and std.algorithm.mutation.move for...
May 30, 2017
Learn »
std.stdio.File does basically the same thing with C's FILE*
May 30, 2017
Learn »
...but wrap a primitive pointer to give RAII handling of resources. For example:


    class Dvb...
May 29, 2017
General »
...of course) and without object lifetimes, no RAII.

Doing this manually sucks, yeah, but I...
26 27 28 29 30 31 32 33 34 35 36 37
Next ›   Last »