Consider this BSL program:
(: foo (Integer -> Integer))
(define (foo n)
(+ n 1))
(: bar (Integer -> Integer))
(define (bar n)
n)
(bar "bar")
Running it in the menu-based "Beginning student" language gives line number info for the signature violation. Not so #lang htdp/bsl.
The reason is this code in the menu-based languages:
|
(define (with-mark source-stx expr phase) |
(I don't know how to do the same for #lang.)
Consider this BSL program:
Running it in the menu-based "Beginning student" language gives line number info for the signature violation. Not so
#lang htdp/bsl.The reason is this code in the menu-based languages:
htdp/htdp-lib/lang/htdp-langs.rkt
Line 907 in 7877cc2
(I don't know how to do the same for
#lang.)