On Monday, 1 October 2012 at 20:41:53 UTC, Tommi wrote:
On Monday, 1 October 2012 at 20:33:29 UTC, Graham Fawcett wrote:
string exclaim(string v)() {
return v ~ "!";
}
void main() {
writeln(exclaim!("howdy"));
}
It doesn't scale well to have to write both compile-time and
run-time versions of your functions.
And how is your proposed @force_ctfe attribute going to solve
this issue? If you're forcing CTFE, by definition you don't have
runtime support.
As you clearly know, D already supports functions that can run at
compile-time and run-time: that's the whole point of of CTFE.
Graham