[plt-scheme] HtDP GUI

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Sat Nov 28 19:32:18 EST 2009

On Nov 28, 2009, at 6:49 PM, Gadfly wrote:

> Hi All --
> 
> Is there a way to get a make-choice gui to dynamically reflect the
> value of a state variable?
> 
> (define test-list (list "a" "b" "c"))
> 
> (define choiceMenu (make-choice test-list))
> 
> (create-window (list (list choiceMenu)))
> ;menu lists choices a, b and c
> 
> (set! test-list (list "a"))
> ;menu lists only a


Think of make-choice as a structure constructor. 
What could the above mean then? Intermezzo 7 should 
explain why this can't possibly work then. 


Posted on the users mailing list.