Pastes with type tag

 

# Paste Title Author Source
1 #e7a846ef ParticlePeter - Template instance dejan
import std.stdio;

struct Key( T )  {

	this( float t , T v )  {
		time = t ;
		value = v ;
	}

	flo
2 #bdb3a9ed Finding a type of a struct-member dejan
import std.stdio;

struct Foo {
  int a;
  double b;
  immutable(char)[] c;
}

int main() {
  writel
3 #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