[Issue 3952] pragma(msg,...) has bugs + alternative idea

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 17 07:44:37 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=3952

Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dmitry.olsh at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #14 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
This is getting out of scope real quick.

First the code:

string foo0() {
    return "this is a test";
}
string foo1() {
    return "";
}
string foo2() {
    string result;
    return result;
}
string foo3() {
    return [];
}
pragma(msg, foo0());
pragma(msg, foo1());
pragma(msg, foo2());
pragma(msg, foo3());
//string hello = "red";
//pragma(msg, hello);
pragma(msg, 12);
void main() {}


Now works as expected no [] literals. Except for static `hello`.

__ctfeWrite is a separate issue so no point in doing it here. 
Lastly any bugs in pragma(msg, ...) are welcome as specific bugs.

--


More information about the Digitalmars-d-bugs mailing list