Skip to content

Comparing a String with a Dynamic depends on the static types #97

Closed

Description

@dimensionscape

In include/hx/LessThanEq.h the string branch fires whenever either operand is statically a String, so a statically typed String compared with a Dynamic holding a number or Bool compares their string forms: ("5":String) == (5:Dynamic) is true while ("5":Dynamic) == (5:Dynamic) is false, and ("true":String) == (true:Dynamic) is true where JS and eval give false. A Dynamic operand should go through the runtime type dispatch.

Activity

  1. added 2 commits that reference this issue on Oct 15, 2026
    e7f0d8c
    bb70e27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions