[racket] Stepper and application in BSL

From: Justin Zamora (justin at zamora.com)
Date: Sun Aug 29 22:11:28 EDT 2010

I put the following in my definitions window (Beginning Student Language).

(define (f x)
  (+ x 1))

(+ (f 3) 1)

When I open the Stepper, (f 3) is highlighted in green, as expected.
If I click "Step >", the expression changes to (+ (+ 3 1) 1), as
expected (it stepped into the function).  However, if I instead click
on "Application >", I get "All of the definitions have been
successfully evaluated."  I expected to get (+ 4 1).  I thought the
stepper would replace (f 3) with the result of the application.  Why
didn't I see what I expected?


Posted on the users mailing list.