Struct with default ctor (Was: [dmd-beta] dmd 2.064 beta take 2)

deadalnix deadalnix at gmail.com
Sun May 19 11:37:29 PDT 2013


On Sunday, 19 May 2013 at 18:27:08 UTC, Walter Bright wrote:
> oldVar isn't being default constructed in your example, nor can 
> I see why you'd need a default constructor in order to use RAII 
> for save/restore.

I need to save the value at construction and restore at 
destruction. I don't need any runtime parameter at construction.


More information about the Digitalmars-d mailing list