Thread overview
[Issue 1924] Allow writefln like ouput during CTFE.
Oct 26, 2019
RazvanN
Dec 17, 2022
Iain Buclaw
October 26, 2019
https://issues.dlang.org/show_bug.cgi?id=1924

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com
          Component|dmd                         |phobos
            Version|D1 (retired)                |D2

--- Comment #12 from RazvanN <razvan.nitu1305@gmail.com> ---
This bug report is invalid. The original reported issue is invalid since pragma cannot evaluate at compile time the value of a runtime variable.

As for the other proposed issue - the ability to print when a function is evaluated - it doesn't have to be implemented in the compiler. This can be implemented as a function in phobos.

Changing component from dmd to phobos.

Test case:

import std.stdio;

char[] wrongfunc()
{
    char[] result;
    writeln(result);
    return result;
}

void main()
{
    enum c = wrongfunc();
}

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=1924

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--
December 01
https://issues.dlang.org/show_bug.cgi?id=1924

--- Comment #13 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/9578

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--