The OpenD Programming Language

optionalGetMember

Behaves as getMember but doesn't enforce at compile time that all types can be handled by the member visitor.

import mir.algebraic;
alias optionalGetMember(string member, TArgs...) = visitImpl!(getMemberHandler!(member, TArgs), Exhaustive.nullable, false)

Return Value

nullable variant, null value is used if the member can't be called with provided arguments.

Meta