[your code here]

Joshua Niehus jm.niehus at gmail.com
Fri Feb 17 12:33:41 PST 2012

Not as fancy as the other submits, but it might be worthy of the 
front page:

import std.stdio, std.traits;

void main(string[] args) {
     auto foo(T)(T n) {
         return delegate(T i) {
             static if (isSomeString!(T))
                 auto m = mixin("n ~ i");
                 auto m = mixin("n + i");
             return m;
     writeln(foo("Hello")(" World!"));
     writeln(foo(18)(24));   }

More information about the Digitalmars-d mailing list