How to get the definition of my function in the MIT circuit?

In JavaScript, I can get the definition of the function "source code", for example:

function alert_Hi() {
    alert("Hi");
}

alert(alert_Hi);

will return exactly what I typed. http://jsfiddle.net/DuCqJ/

How to do this in a MIT circuit?

I remember that I saw something that returns #compound-procedureor something like that, but I really want it to be "source code".

+5
source share
2 answers

You can try pp

(define (display-hi) (display "Hi"))
(pp display-hi) =>
(named-lambda (display-hi)
  (display "Hi"))

MIT-Scheme Debugging Tools

+7
source

JavaScript , , , . ; ( , ) .

, , , -, , , .

, , ?

+4

All Articles