Hi all - <br><br>What is the difference with respect to imported bindings and local bindings? I notice that imported binding cannot be expanded via #%top? <br><br>> (define foo (lambda (x) x))<br>> foo<br>#<procedure:foo>
<br>> (#%top . foo)<br>#<procedure:foo> ; => expected<br>> (module foo2 mzscheme <br> (define bar (lambda (x) x)) <br> (provide bar))<br>> (require foo2)<br>> bar<br>#<procedure:bar><br>> (#%top . bar)
<br>. reference to undefined identifier: bar ; => unexpected... <br><br clear="all">In syntax a define often gets expanded to (#%top . id) form, so how can I write <br><br>#'(define local-id imported-id) <br><br>Given that the above gets expanded to
<br><br>#'(define-values (local-id) (#%top . imported-id))<br><br>?<br><br>Thanks,<br>yinso <br><br>-- <br><a href="http://www.yinsochen.com">http://www.yinsochen.com</a><br>...continuous learning...