Pastes with delegate tag

 

# Paste Title Author Source
1 #039c3f02 A very nice example of UFCS and delegates. dejan
import std.stdio;

void times(int n, lazy void dg) { 
  while(n--) { 
    dg(); 
  } 
} // times() f
2 #e6dc671b Type-inferring a delegate argument with unknow number of known-typed arguments dejan
// The D source is from
// http://stackoverflow.com/questions/15479707/type-inferring-a-delegate-arg
3 #bf09bd0d std.event Orvid
module std.event;

import std.traits : isDelegate;

struct Event(D, bool allowDuplicates = false)
	i
4 #4a4c244d Orvid
module std.event;

import std.traits : isDelegate;

struct Event(D, bool allowDuplicates = false, bo