Skip to content

Make Expr::eval_to_const public for FixedRule. #162

@thipokch

Description

@thipokch

Context

I'm writing a custom fixed rules with parameters/options. I am able to get scalar value (bool, int, string...) from options just fine.

Problem

With Lists, I can extract the values using expr_option(), which returns Expr. However, I am unable to use value from Expr, because it has yet to be evaluated Const variant using eval_to_const().

Solution

  1. Make Expr::eval_to_const public
  2. Evaluate expression to const for FixedRule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions