Skip to content

need (attr x rec) .. which is equivalent to rec.x #37

@jeske

Description

@jeske

Irken does not like the form (fn 1).x, when x returns a record {x=1}.

If I instead store (fn 1) in a variable, then I can do variable.x just fine.

(include "lib/basis.scm")

(define (a r) {x=r})
(define b (a 1))

(printf (int b.x))
; (printf (int (a 10).x)) ; this produces a compile error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions