3.50. kink/param/OPT_PARAM

Provides opt_param data type.

3.50.1. OPT_PARAM.opt_param?(Val)

Returns whether the Val is an opt_param.

3.50.2. Type opt_param

An opt_param is a param which consists of a backing ref, and a default val.

If the right-hand-side has the corresponding arg to the param, the opt_param passes the arg to the backing ref via op_store method. Otherwise, it passes the default val to the backing ref.

Opt_param.pass_arg(Arg)

Passes Arg as the arg.

Opt_param.pass_nothing

Passes nothing as the arg.