chi-global-macro complains when loading a serialized variable transformer

Bug #452535 reported by Gwen Weinholt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
High
Abdulaziz Ghuloum

Bug Description

There's a problem with serializing or loading serialized variable transformers:

$ cat foo.sls
#!r6rs
(library (foo)
  (export p.car)
  (import (rnrs))

  (define p (cons 4 5))
  (define-syntax p.car
    (make-variable-transformer
     (lambda (x)
       (syntax-case x (set!)
         [(set! _ e) #'(set-car! p e)]
         [(_ . rest) #'((car p) . rest)]
         [_ #'(car p)])))))
$ cat foo.sps
#!r6rs
(import (rnrs) (foo))
(display p.car)
(newline)
$ export IKARUS_LIBRARY_PATH=.
$ ikarus --r6rs-script foo.sps
4
$ ikarus --compile-dependencies foo.sps
Serializing "/home/weinholt/.ikarus/precompiled/tmp/foo.sls.ikarus-64bit-fasl" ...
$ ikarus --r6rs-script foo.sps
Unhandled exception:
 Condition components:
   1. &assertion
   2. &who: chi-global-macro
   3. &message: "BUG: not a procedure"
   4. &irritants: ((macro! . #<procedure [char 142 of ./foo.sls]>))

I'm running Ikarus Scheme version 0.0.4-rc1+, 64-bit (revision 1859, build 2009-09-30).

Related branches

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Fixed in 1860. Thanks.

Changed in ikarus:
assignee: nobody → Abdulaziz Ghuloum (aghuloum)
importance: Undecided → High
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.