It seems pure ain't so pure after all

Graham Fawcett fawcett at uwindsor.ca
Mon Oct 1 13:33:46 PDT 2012


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



More information about the Digitalmars-d mailing list