the following expression failed on DrRacket but successfuly evaluated on other Scheme interpreter:
(define (f x) (g x))
This special form defines a function f(x) that when invoked - returns the invocation of g(x). DrRacket complains that :
g: unbound identifier in: g
however, g must not be defined in that stage, since i just define f but not invoke (f) (i can bound g later but before calling (f) which is perfectly fine in other interpreters )
g
after you've definedf
in the code, the important part is that it must be defined somewhere before trying to execute the code. – Óscar López