static if on types like double, float
Don Clugston
dac at nospam.com.au
Wed Jun 14 23:45:36 PDT 2006
Jarrett Billingsley wrote:
> "Daniel Keep" <daniel.keep.lists at gmail.com> wrote in message
> news:e6p2l6$r1h$1 at digitaldaemon.com...
>
>> You might be able to use ``static assert(false, "...");`` to show a
>> message, maybe not. I know you can pass the message to the non-static
>> version, but I can't remember if the static one supports that.
>
> Indeed you can!
I've been trying to work out what is allowed in the message. You can
concatenate char [] literals, and use .mangleof, but AFAICT, templates
inside the message are not instantiated. (I'm trying to work out if it's
possible to dump a template 'call stack' in the message).
More information about the Digitalmars-d-learn
mailing list