Suppose I have the following program:
Code: Select all
(define (func)
(println "func")
)
(func 1 2 3)
(exit)
One might think it can be solved as follows:
Code: Select all
(define (func)
(println (args 0))
)
(func 4 5 6)
(exit)
Has any of you a suggestion on how I can retrieve the functionname while I am in that function? So not by hard-coding the name? :-)
Actually I am looking for some kind of "self" or a similar thing as the Java construction "me".
Peter