Structs are Not Plain: A call for empty struct constructors

FeepingCreature feepingcreature at
Thu Sep 19 10:38:22 UTC 2019

On Thursday, 19 September 2019 at 10:06:12 UTC, Kagamin wrote:
> On Thursday, 19 September 2019 at 09:02:39 UTC, FeepingCreature 
> wrote:
>> (`scope(exit) validate;` does *not* work - that's the sort of 
>> line you just know will get forgotten. We want validation to 
>> be automatic.)
> The test code is usually tested for alternative scenario to 
> verify that it actually tests what it's supposed to test. 
> Forgotten validation won't pass that.

`validate` is not actually part of the test in this case, it's 
part of dmocks and nothing bad happens if you forget to call it.

More information about the Digitalmars-d mailing list