1.210 <GtkTryExpression>

Class: <GtkTryExpression>

It derives from <GtkExpression>.

A <GtkExpression> that tries to evaluate each of its expressions until it succeeds.

If all expressions fail to evaluate, the <GtkTryExpression>’s evaluation fails as well.

Procedures

Procedure: try-expression:new expressions ⇒ %return

Creates a <GtkExpression> with an array of expressions.

When evaluated, the <GtkTryExpression> tries to evaluate each of its expressions until it succeeds. If all expressions fail to evaluate, the <GtkTryExpression>’s evaluation fails as well.

The value type of the expressions in the array must match.

expressions

Passed: a list or vector, each a <GtkExpression>.

The array of expressions

%return

Returned: a <GtkTryExpression>.

a new <GtkExpression>

n-expressions

Not passed: guile-gi gives the length of expressions.

The number of expressions