give static assert the pragma(msg,...) changes

Manu turkeyman at
Fri Sep 18 04:25:44 UTC 2020

On Fri, Sep 18, 2020 at 10:15 AM Nicholas Wilson via Digitalmars-d <
digitalmars-d at> wrote:

> Continuing in the vein of making error messages nicer:
> Is there any reason that static assert, which deals with compile
> time messages, doesn't function the same way as pragma(msg,...),
> which also deals with compile time messages, w.r.t multiple
> arguments to the string that can be anything including types?
> It just occurred to me that there is a lot of string
> concatenation and `.stringof` use.


This is SO obvious! I've always wanted this, I just never knew it!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Digitalmars-d mailing list