htdp
htdp copied to clipboard
Consider this program ``` #lang htdp/asl (check-expect (build-list 20 (lambda (x) x)) (build-list 21 (lambda (x) x))) ``` It prints: ``` [samth@huor:~/sw/plt (master) plt] raco test /tmp/d.rkt raco test: (submod...
I'm having two problems with color-list->bitmap: the documentation shows a gradient, but when running the example in DrRacket 8.0.900, it only shows the 3 colors without gradient. Also, a lot...
It looks like clicking the "dock" button on the test results window while the stepper is showing just causes the window to disappear altogether. OTOH, at least it comes back...
When BSL is set to display rational numbers as decimal, evaluating them produces a non-textual value that is easily mistaken for being textual. Then if a student copies and pastes...
Shriram points out that the stepper is broken on this simplest big-bang program: ``` (require 2htdp/image) (require 2htdp/universe) (define (f2 w) (text "hi" 30 "red")) (big-bang "dummy" [to-draw f2]) ```...
Whoops! Looks like check-error can be called with just one argument. The stepper doesn't handle it correctly. I guess I should be glad that it doesn't crash, sigh.
The following packages fail to build due to test-engine changes: - csc104 (needs `builder` from `test-engine/racket-tests`) - profj (needs `test-engine/test-display.scm`) - java-lexer (depends on `profj`)
There are some differences when HtDP programs are run from the DrRacket IDE versus using the "racket" command line program. I am using DrRacket 7.8 on MacOS 10.13.6. For example,...
With a program with a _very_ large image in it, DrRacket become extremely sluggish, and `animate` seems to show only a black square some of the time. To reproduce, in...
I am reading through HtDP/2e and find it annoying that pressing `Cmd+W` or `Esc` can't close the canvas windows that appears while using the `animate` from `2htdp/universe`. `Cmd+Q`, of course,...