Another option is using pure functions and static if's.

const bool ProgrammingSections = getProgrammingSections;
const bool PasteBinFullSection = getPasteBinFullSection;

pure bool getProgrammingSections() {
        if (CompleteSite) {
                return true;
        } else {
                return false;
        }
}

pure bool getPasteBinFullSection() {
        if (CompleteSite || ProgrammingSections) {
                return true;
        } else {
                return false;
        }
}

static if (ProgrammingSections) {
    // yay programming
}


static if (PasteBinFullSection) {
    // Ooo pastebin!
}


Also works rather well through different modules.

Reply via email to