July 13, 2010 Learn » Re: Recommended way to do RAII cleanly | |||
|---|---|---|---|
| |||
...is ever a satisfactory substitute for real RAII. And I have to say, I'm... | |||
July 12, 2010 Learn » Re: Recommended way to do RAII cleanly | |||
|---|---|---|---|
| |||
Well, if you have found a use case for static opCall then it needs to... | |||
July 12, 2010 Learn » Re: Recommended way to do RAII cleanly | |||
|---|---|---|---|
| |||
This would be why I like Berophile's suggestion on the main list of having... | |||
July 12, 2010 Learn » Re: Recommended way to do RAII cleanly | |||
|---|---|---|---|
| |||
I think that's supposed to go away, but I'm not 100% sure. Would... | |||
July 12, 2010 Learn » Re: Recommended way to do RAII cleanly | |||
|---|---|---|---|
| |||
...comparison - particularly when I can still use RAII in cases where the constructor does take... | |||
July 12, 2010 Learn » Re: Recommended way to do RAII cleanly | |||
|---|---|---|---|
| |||
Can't you use a static opCall (also suggested by Jacob Carlborg)? Bye, bearophile | |||
July 12, 2010 Learn » Re: Recommended way to do RAII cleanly | |||
|---|---|---|---|
| |||
...autolock for a mutex which would use RAII. It would lock the mutex when it... | |||
July 12, 2010 Learn » Re: Recommended way to do RAII cleanly | |||
|---|---|---|---|
| |||
...that, wouldn't most structs that use RAII have a constructor that at least requires... | |||
July 12, 2010 Learn » Re: Recommended way to do RAII cleanly | |||
|---|---|---|---|
| |||
Jonathan M Davis <jmdavisprog@gmail.com> wrote: So use an enum and string mixins: import... | |||
July 12, 2010 Learn » Re: Recommended way to do RAII cleanly | |||
|---|---|---|---|
| |||
You can use a static opCall method (if that hasn't been deprecated as well... | |||
Copyright © 1999-2021 by the D Language Foundation