mgorlick / CRESTaceans

Experiments and documentation for building CREST infrastructure. This material is based upon work supported by the National Science Foundation under Grant No. 0820222.
http://www.isr.uci.edu/projects/crest/
5 stars 2 forks source link

Error transforming a 'define' in a sequence of expressions #13

Closed kstrasser closed 13 years ago

kstrasser commented 13 years ago

(define c '(lambda () (display 1) (define v 3) (+ v 3))) (define c* (motile/compile c)) (motile/call (motile/call c* ENVIRON/TEST) ENVIRON/TEST)

  1. . ../../../Motile/generate/frame.rkt:185:8: motile/global/find: undefined: define
kstrasser commented 13 years ago

Another data point

(define t '(cond [#t (define x 5) (+ x 1)])) (motile/call (motile/call (motile/compile t) BASELINE) BASELINE) . . ../../../Motile/generate/frame.rkt:185:8: motile/global/find: undefined: define

kstrasser commented 13 years ago

This turns out to be invalid w/r/t r5rs (i.e. we are not implementing Racket specific behavior).