core.internal.switch_

This module contains compiler support for switch...case statements

Functions 3

fnint __switch(T, caseLabels...)(/*in*/ const scope T[] condition) pure nothrow @safe @nogcSupport for switch statements switching on strings. Params: caseLabels = sorted array of strings generated by compiler. Note the strings are sorted by length first, and then lexicographically. cond...
private fnint __switchSearch(T)(/*in*/ const scope T[][] cases, /*in*/ const scope T[] condition) pure nothrow @safe @nogc
fnvoid __switch_error()(string file = __FILE__, size_t line = __LINE__)Compiler lowers final switch default case to this (which is a runtime error) Old implementation is in core/exception.d