Asking for advice - assert for ImportC

Dennis dkorpel at gmail.com
Thu Apr 28 08:29:41 UTC 2022


On Thursday, 28 April 2022 at 08:05:22 UTC, Walter Bright wrote:
> No, we don't have to do this. But it makes the ImportC test 
> suite a lot more convenient.

If it's about test suite convenience, you don't need a new 
language feature. You can define your own assert template and 
import it in tests that need it. If manually importing it is too 
inconvenient as well, you can modify the test suite runner to add 
the import statement, or add it to 
[__builtins.di](https://github.com/dlang/druntime/blob/master/src/__builtins.di) under a version condition that's set in the test suite.



More information about the Digitalmars-d mailing list