Skip to content

Evaluating eq? in Ldyn interpreter (Adding for Matei) #35

Description

@HalflingHelper

The interpreter uses the racket equal? to evaluate the eq? primitive. This is different than the other interpreters which use the racket eq? . This causes the following test to give a different answer based off of the interpreter that you are using

(if (eq? (vector 0) (vector 0))
    42
    0)

This is the line in the Ldyn interpreter

[(Prim 'eq? (list e1 e2))
       (Tagged (equal? (recur e1) (recur e2)) 'Boolean)]

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