On Monday, 1 October 2012 at 20:30:26 UTC, Tommi wrote:
It's a lot less work to add one attribute to your function once, than to write something extra every time you call that function.

string exclaim(string v)() {
  return v ~ "!";
}

void main() {
  writeln(exclaim!("howdy"));
}

Graham

Reply via email to