Dynamic

This is a very very simple class for storing a variable regardless of it's size and type

Members

Functions

canConvertTo
bool canConvertTo(TypeInfo to)

checks if stored value can be converted to given "to" type.

convertTo
const(void)[] convertTo(TypeInfo to)

converts stored value to given "to" type and returns 1el array of target type vals. conversion must be defined.

type
TypeInfo type()

returns stored typeinfo

typename
string typename()

returns stored typename (work around dmd bug https://issues.dlang.org/show_bug.cgi?id=3831)

Meta