Opened 9 months ago

Closed 2 months ago

#1342 closed defect (fixed)

define-record-type doesn't define type name

Reported by: ashinn Owned by:
Priority: major Milestone: 5.0
Component: core libraries Version: 4.11.0
Keywords: Cc:
Estimated difficulty: easy

Description

I'm unable to compile (chibi iset) in Chicken because it uses the following definition:

(define-record-type Integer-Set
  (%make-iset start end bits left right)
  iset?
  (start iset-start iset-start-set!)
  (end   iset-end   iset-end-set!)
  (bits  iset-bits  iset-bits-set!)
  (left  iset-left  iset-left-set!)
  (right iset-right iset-right-set!))

and exports Integer-Set, but Integer-Set is not bound in Chicken. This is required to be defined in both SRFI 9 and R7RS (scheme base) - if for some reason this isn't desired in the core Chicken language, a wrapper should be provided for these two libraries. It can be bound to anything at all, even syntax. In SRFI 99 procedural introspection is provided on this binding.

Change History (4)

comment:1 Changed 3 months ago by sjamaan

  • Estimated difficulty set to easy
  • Milestone changed from someday to 5.0

comment:2 Changed 3 months ago by sjamaan

I think we need to do this for 5.0 when also tackling the "global record namespace" problem.

comment:3 Changed 3 months ago by sjamaan

Patch sent to chicken-hackers.

comment:4 Changed 2 months ago by sjamaan

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by 54b0d5adcc855fcc299ad116b6d95f31f3f2de3d

Note: See TracTickets for help on using tickets.