Allow c++ expressions in default/implicit/validator IDL attributes

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2018-12-17
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Exapand the definitions of default, implicit, and validator.{gt,lt,gte,lte} to accept either a literal scalar (as they do now), or a dictionary containing "expr: string" and optionally "is_constexpr: bool"

      If a literal scalar, non-numerics will be encapsulated as needed (current behavior).

      if a dictionary containing 'expr', that expression will be used without encapsulation.  is_constexpr (default true) will also enforce that the expression provided must be evaluable as a constexpr, failing to do so will result in a compile error.

            Assignee:
            Sara Golemon (Inactive)
            Reporter:
            Sara Golemon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: