hyln9 / ikarus

Optimizing incremental native-code compiler for R6RS scheme. This is a forked repository.
https://launchpad.net/ikarus
Other
5 stars 0 forks source link

record protocol function returning void crashes ikarus #269

Open hyln9 opened 10 years ago

hyln9 commented 10 years ago

The following program crashes Ikarus revision 1870:

(import (rnrs))

(define-record-type alpha (fields a) (protocol (lambda (maker) (newline))))

(make-alpha 1)

Launchpad Details: #LP559498 Marco Maggi - 2010-04-09 14:43:17 -0400

hyln9 commented 10 years ago

It does not crash when done in the REPL:

Ikarus Scheme version 0.0.4-rc1+ (revision 1870, build 2010-04-08) Copyright (c) 2006-2009 Abdulaziz Ghuloum

(define-record-type alpha (fields a) (protocol (lambda (maker) (newline))))

(make-alpha 1) Unhandled exception Condition components:

  1. &assertion
  2. &who: apply
  3. &message: "not a procedure"
  4. &irritants: (#)

Launchpad Details: #LPC Derick Eddington - 2010-04-09 16:34:58 -0400