February 24, 2017 Learn » Re: RAII | |||
|---|---|---|---|
| |||
...looks interesting. However this may not be RAII after all. Or may be too much... | |||
February 23, 2017 Learn » Re: RAII | |||
|---|---|---|---|
| |||
...of https://w0rp.com/blog/post/an-raii-constructor-by-another-name-is-just-as... | |||
February 23, 2017 Learn » Re: RAII | |||
|---|---|---|---|
| |||
Wrt. the special name, that's obviously extremely useful for generic templates (containers etc.). | |||
February 23, 2017 Learn » Re: RAII | |||
|---|---|---|---|
| |||
Sorry but this is just completely wrong. RAII is all about me NOT having to... | |||
February 23, 2017 Learn » Re: RAII | |||
|---|---|---|---|
| |||
A constructor is just a factory function with a special name... it is almost equal... | |||
February 23, 2017 Learn » Re: RAII | |||
|---|---|---|---|
| |||
static opCall() is the way to emulate an argumentless struct constructor. You still need to... | |||
February 23, 2017 Learn » Re: RAII | |||
|---|---|---|---|
| |||
That's not elegant. You need a factory function for each type containing one of... | |||
February 23, 2017 Learn » Re: RAII | |||
|---|---|---|---|
| |||
Arun Chandrasekaran wrote: why not static method or free function that returns struct? due to... | |||
February 23, 2017 Learn » RAII | |||
|---|---|---|---|
| |||
I'm trying to write an RAII wrapper on Linux. I understand struct in D... | |||
February 04, 2017 Learn » Re: GC question | |||
|---|---|---|---|
| |||
...no manual management, no RAII or destructors etc. - Manual GC, RAII and destructors, smart pointers... | |||
Copyright © 1999-2021 by the D Language Foundation