Alias std.typecons.WhiteHole
WhiteHole!Base is a subclass of Base which automatically implements
all abstract member functions as functions that always fail. These functions
simply throw an Error and never return. Whitehole is useful for
trapping the use of class member functions that haven't been implemented.
						
					
				The name came from Class::WhiteHole Perl module by Michael G Schwern.
Parameters
| Name | Description | 
|---|---|
| Base | A non-final class for WhiteHoleto inherit from. | 
See Also
Example
import stdExample
import std// Prints log messages for each call to overridden functions. string generateLogger(C, alias fun)() @property { import std.traits; enum qname = C.stringof ~ "." ~ _traits(identifier, fun); string stmt;
stmt ~= q{ struct Importer { import std.stdio; } };
stmt ~= Importer ~ qname ~ (", args, ");
static if (!_traits(isAbstractFunction, fun))
{
    static if (is(ReturnType!fun == void))
        stmt ~= q{ parent(args); };
    else
        stmt ~= q{
            auto r = parent(args);
            Importer.writeln("--> ", r);
            return r;
        };
}
return stmt;
Authors
Andrei Alexandrescu, Bartosz Milewski, Don Clugston, Shin Fujishiro, Kenji Hara