[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #1581: record-instance? from (chicken memory represen
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #1581: record-instance? from (chicken memory representation) fails in modules |
Date: |
Sat, 02 Feb 2019 11:48:01 -0000 |
#1581: record-instance? from (chicken memory representation) fails in modules
----------------------------+------------------------------
Reporter: kooda | Owner:
Type: defect | Status: new
Priority: minor | Milestone: 5.1
Component: core libraries | Version: 5.0.0
Keywords: | Estimated difficulty: easy
----------------------------+------------------------------
Since 5.0.0, we prefix record symbols with the module name, this makes the
behavior of `record-instance?` very strange, as the same call to it can
work outside a module but fail inside.
For example, this breaks the record matching of the matchable egg.
Here is a test case:
{{{
(module foo ()
(import scheme)
(cond-expand
(chicken-4 (import chicken) (use lolevel))
(chicken-5 (import (chicken base) (chicken memory representation))))
(define-record bar)
(assert (record-instance? (make-bar) 'bar)))
}}}
--
Ticket URL: <https://bugs.call-cc.org/ticket/1581>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #1581: record-instance? from (chicken memory representation) fails in modules,
Chicken Trac <=