Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: D | Size: 0.18 KB | Hits: 25 | Expires: Never
Copy text to clipboard
  1. import tango.io.Stdout;
  2.  
  3. void main() {
  4.         auto myFunction = getFunction(3);
  5.         Stdout(myFunction()).newline();
  6. }
  7.  
  8. int delegate() getFunction(int x) {
  9.         return () { return x; };
  10. }