Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

bug around record type #78

Closed
stibear opened this issue Mar 24, 2014 · 2 comments
Closed

bug around record type #78

stibear opened this issue Mar 24, 2014 · 2 comments

Comments

@stibear
Copy link
Contributor

stibear commented Mar 24, 2014

> (import (scheme lazy))                                                         
=> #f
> (delay (+ 1 2))                                                                
error: length: expected list, but got #f

or

> (define-record-type pare
*   (kons x y)                                                                   
*   pare?
*   (x kar)                                                                      
*   (y kdr))
=> #f
> (kons 'a 'b)                                                                   
error: length: expected list, but got #f
@nyuichi
Copy link
Member

nyuichi commented Mar 25, 2014

@stibear I'm not familiar with the inside of define-record-type. Do you have any idea?

@stibear
Copy link
Contributor Author

stibear commented Mar 25, 2014

@wasabiz define-record-type makes some definitions. And if you call the record constructor, e.g. kons, the error happens.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants