It seems pure ain't so pure after all

Tommi tommitissari at hotmail.com
Mon Oct 1 13:42:10 PDT 2012


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.


More information about the Digitalmars-d mailing list