The OpenD Programming Language

PhobosRandom.save

Phobos-style random interface.

save is only available when the underlying Engine has no indirections and has pure @safe opCall() and doesn't have an impure or @system destructor.

struct PhobosRandom(Engine)
@property const @trusted
static if(!hasIndirections!Engine && is(typeof( () pure @(safe)())))
typeof(this)
save
()
()
if ()

Meta