Pastes with static tag

 

# Paste Title Author Source
1 #ead5ed8e SO-11491144 - D Inline Assembler: Access Static Variable dejan
module so_11491144_cybershadow;

// http://stackoverflow.com/questions/11491144/d-inline-assembler-a
2 #64f6a656 SO-11491144 - D Inline Assembler: Access Static Variable dejan
module so_11491144_zor;

// http://stackoverflow.com/questions/11491144/d-inline-assembler-access-st
3 #3fe074f2 The need for static if dejan
import std.stdio;

enum int XXX = 10;
static if (XXX == 10) {
	pragma(msg, "ten");
}

template Facto
4 #e6ac6475 Static stuff dejan
import std.stdio;

class A
{
	static int id;
	
	static this() {
		id = 0;
		pragma(msg, "A");
	}