The OpenD Programming Language

lvalueOf

Creates an lvalue or rvalue of type T for typeof(...) and __traits(compiles, ...) purposes. No actual value is returned.

@property ref
T
lvalueOf
(
T
)
(
inout __InoutWorkaroundStruct = __InoutWorkaroundStruct.init
)

Parameters

T

The type to transform

Note: Trying to use returned value will result in a "Symbol Undefined" error at link time.

Examples

static int f(int);
static assert(is(typeof(f(rvalueOf!int)) == int));
static bool f(ref int);
static assert(is(typeof(f(lvalueOf!int)) == bool));

Meta