https://issues.dlang.org/show_bug.cgi?id=1924
RazvanN <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Component|dmd |phobos Version|D1 (retired) |D2 --- Comment #12 from RazvanN <[email protected]> --- 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(); } --
