assert/static assert message format difference

DLearner bmqazwsx123 at gmail.com
Tue Jun 13 16:46:26 UTC 2023


Only a small thing, but is it intended that:
```
void main() {

// static assert (false, "Static Assert triggered");
    assert(false, "Assert triggered");

}
```
produces
```
core.exception.AssertError at staticassertex01.d(4): Assert triggered
```
but removing the // produces
```
staticassertex01.d(3): Error: static assert:  "Static Assert 
triggered"
```
ie message surrounded by double-quotes?


More information about the Digitalmars-d-learn mailing list