[racket] Saving and restoring many parameters

From: Neil Toronto (neil.toronto at gmail.com)
Date: Wed Oct 19 17:47:34 EDT 2011

On 10/19/2011 12:52 PM, Robby Findler wrote:
> On Wed, Oct 19, 2011 at 12:39 PM, Neil Toronto<neil.toronto at gmail.com>  wrote:
>> If I spawn a render thread that inherits the parent thread's parameters,
>> won't things like current-namespace and current-custodian have the right
>> values?
>> It's starting to look like that is the solution that is the most
>> maintainable and the least work. And it still allows users to parameterize
>> the functions they plot. If something breaks, it's not my fault, because
>> spawning a thread that waits on a channel for a "draw now!" command, and
>> then draws on a dc, should just work, right?
> In either case, it will be equally likely to be your fault.
> The issue will be if the drawing call back expects parameters to be
> set in the context in which the actually calback has.
> Which they might. Maybe.

Gah. You're right.

That's it. I'm going to invent, like, parameter units or something.

Neil T

Posted on the users mailing list.