March 30, 2018 Learn » How would you create this construct? | |||
|---|---|---|---|
| |||
...before). So it's kind of like RAII (or maybe exactly like). What I'm... | |||
March 29, 2018 General » Re: D vs nim | |||
|---|---|---|---|
| |||
...else is missing for D to achieve RAII as in C++ ? And is deterministic destruction... | |||
March 29, 2018 Learn » Re: D RAII with postblit disabled | |||
|---|---|---|---|
| |||
OK, thanks. | |||
March 29, 2018 Learn » Re: D RAII with postblit disabled | |||
|---|---|---|---|
| |||
You'll have to do it all the way up (unless you can use a... | |||
March 29, 2018 Learn » Re: D RAII with postblit disabled | |||
|---|---|---|---|
| |||
...first hurdle but I still cannot use RAII with struct member vars. E.g. --- struct... | |||
March 29, 2018 General » Re: D vs nim | |||
|---|---|---|---|
| |||
This is deterministic destruction and not RAII. Resource is never *acquired* here. Lack of default... | |||
March 27, 2018 General » Re: D vs nim | |||
|---|---|---|---|
| |||
that comment was regarding -betterC RAII (with structs) has been available in D for a... | |||
March 27, 2018 General » Re: D vs nim | |||
|---|---|---|---|
| |||
How is RAII available in D? I did a quick search on this forum but... | |||
March 27, 2018 Learn » Re: D RAII with postblit disabled | |||
|---|---|---|---|
| |||
Perfect, thanks. | |||
March 27, 2018 Learn » Re: D RAII with postblit disabled | |||
|---|---|---|---|
| |||
I'd also add `@disable this();` and then a `static O make() { return O(theAllocator... | |||
Copyright © 1999-2021 by the D Language Foundation